From owner-freebsd-questions Wed Dec 1 12:53: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gate.consol.de (gate.consol.de [194.221.87.10]) by hub.freebsd.org (Postfix) with ESMTP id 697BC1511D for ; Wed, 1 Dec 1999 12:52:58 -0800 (PST) (envelope-from Michael.Elbel@consol.de) X-Envelope-Sender-Is: Michael.Elbel@consol.de (at relayer gate.consol.de) Received: from msgsrv.bb.consol.de (root@msgsrv.bb.consol.de [10.250.0.100]) by gate.consol.de (8.9.3/8.9.1) with ESMTP id VAA01856; Wed, 1 Dec 1999 21:52:03 +0100 (CET) Received: from vscanner.bb.consol.de (root@vscanner.bb.consol.de [10.250.0.120]) by msgsrv.bb.consol.de (8.8.8/8.8.8) with ESMTP id VAA07728; Wed, 1 Dec 1999 21:52:03 +0100 Received: from fourier.int.consol.de (fourier.int.consol.de [10.0.1.17]) by vscanner.bb.consol.de (8.9.3/8.9.3) with ESMTP id VAA13476; Wed, 1 Dec 1999 21:51:14 +0100 Received: (from me@localhost) by fourier.int.consol.de (8.9.3/8.8.7) id VAA27954; Wed, 1 Dec 1999 21:51:47 +0100 (CET) (envelope-from me) Date: Wed, 1 Dec 1999 21:51:47 +0100 X-Amavis-approved: Yes From: Michael Elbel To: Greg Lehey Cc: Michael Elbel , Mark Ovens , questions@FreeBSD.ORG Subject: Re: Programmers' editor? Message-ID: <19991201215147.A27800@consol.de> References: <19991126095558.C48221@consol.de> <19991130210255.39078@mojave.sitaranetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <19991130210255.39078@mojave.sitaranetworks.com>; from grog@mojave.sitaranetworks.com on Tue, Nov 30, 1999 at 09:02:55PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Nov 30, 1999 at 09:02:55PM -0500, Greg Lehey wrote: > > You sure it was Greg? > > Well, I believe it :-) I'm sure we're not the only two who use mutt > and Emacs. Ok, sorry. > > > > (load-library "gnuserv") > > (gnuserv-start nil) > > OK, what does this buy you? It's relatively easy to tell Emacs to > edit something from outside, but how do you get mutt to wait until > you've finished editing the message, and how to you tell mutt when you > have finished? The gnuclient or emacsclient (for fsfmacs) programs will block until you finish the buffer with 'Ctrl-X #'. So, with xemacs and my $EDITOR set to gnuclient, mutt will invoke 'gnuclient '. That will pop up a new window (in xemacs, i'm not sure about this for fsfmacs any more :-). When I'm finished I'll hit 'Ctrl-X #', the window will go away and mutt will resume the same as if it had e.g. invoked vi. See the documentation for gnu/emacsclient for more information. Gnuclient can even create windows on displays different from where the original emacs runs. -- \|/ -O- Michael Elbel, ConSol* GmbH, - me@consol.de - 089 / 45841-256 /|\ Fermentation fault (coors dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message