From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: bash/readline emacs mode help Date: Thu, 27 Jun 2013 11:27:35 -0400 Organization: A noiseless patient Spider Message-ID: References: <87hagjgatk.fsf@mithlond.arda> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1372349093 29796 80.91.229.3 (27 Jun 2013 16:04:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Jun 2013 16:04:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 27 18:04:54 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UsEgo-00005R-JI for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Jun 2013 18:04:54 +0200 Original-Received: from localhost ([::1]:44305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsEgo-00027M-6U for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Jun 2013 12:04:54 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="21518"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OJnWVx038YwclqbzJp7Hg" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:dVtO12TksBqyCBEf8GXmnvaOgG4= Original-Xref: usenet.stanford.edu gnu.emacs.help:199519 X-Mailman-Approved-At: Thu, 27 Jun 2013 12:04:45 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91782 Archived-At: In article , david@adboyd.com (J. David Boyd) wrote: > david@adboyd.com (J. David Boyd) writes: > > > Teemu Likonen writes: > > > >> C. K. Kashyap [2013-06-27 14:44:21 +05:30] wrote: > >> > >>> One of the things I get with this mode is the ability to open up vi to > >>> edit a command line (using Escape v) [...] > >>> > >>> I was wondering if there is an equivalent in emacs mode? > >> > >> In Emacs editing mode the key "C-x C-e" (edit-and-execute-command) opens > >> the text editor defined in $VISUAL or $EDITOR variables (or "emacs"). > > > > Doesn't seem all that useful though. I have my $EDITOR set to be > > "emacsclient -n", which doesn't work at all in this circumstance. > > > > If I get rid of the '-n' it works fine, but I'm not doing that.... > > > Hmm, should have clarified. Yes, emacsclient works perfectly, opening up the > command line in a new emacs buffer. But the '-n' breaks the connection to > the command line, so even though I can edit it to my heart's content, there is > no way to have it fed back to the waiting command line. > > Dave Why would you put -n in $EDITOR? This is mostly used by programs that want to invoke an editor on a temp file and then do something when you're done editing it, such as "crontab -e", "vipw", or readline's C-x C-e. So it should always be set to a command that waits. Maybe you're trying to deal with Emacs deadlocking if you use one of these commands from M-! inside Emacs? The solution in this case is to background the command with &. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***