Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!apple!bloom-beacon!bu-cs!att!homxb!ho7cad!wjc From: wjc@ho5cad.ATT.COM (Bill Carpenter) Newsgroups: comp.emacs Subject: Re: emacsclient -- exec's to emacs Message-ID: Date: 22 Mar 89 03:07:59 GMT References: Sender: nuucp@ho7cad.ATT.COM Reply-To: wjc@ho5cad.att.com (Bill Carpenter) Distribution: comp Organization: AT&T Bell Laboratories Lines: 23 In-reply-to: faulkner@HUSC6.HARVARD.EDU's message of 20 Mar 89 15:07:43 GMT In article faulkner@HUSC6.HARVARD.EDU (Don Faulkner) writes: >Why not make emacsclient exec "emacs" if no server exists? > > [suggests modification to emacsclient source code] I've got a better idea. Leave the code the way it is and help your self to this shell script: #================================================================ # if can run emacsclient (gnuemacs is already running someplace) do # it; else invoke a GNUemacs proper. # expecting $GNU from GYOU! $GNU/etc/emacsclient "$@" && exit exec gnuemacs "$@" ================================================================ That's right. Exec'ing "emacs" on my machine would get you a surprise. -- -- Bill Carpenter att!ho5cad!wjc or attmail!bill