From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28328 invoked from network); 4 Nov 2005 16:33:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Nov 2005 16:33:08 -0000 Received: (qmail 54870 invoked from network); 4 Nov 2005 16:33:00 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 16:33:00 -0000 Received: (qmail 29401 invoked by alias); 4 Nov 2005 16:32:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9636 Received: (qmail 29391 invoked from network); 4 Nov 2005 16:32:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2005 16:32:53 -0000 Received: (qmail 53875 invoked from network); 4 Nov 2005 16:32:53 -0000 Received: from vinc17.net4.nerim.net (HELO ay.vinc17.org) (62.212.121.106) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 16:32:51 -0000 Received: from lefevre by ay.vinc17.org with local (Exim 4.54) id 1EY4Uk-0003MQ-22; Fri, 04 Nov 2005 17:32:50 +0100 Date: Fri, 4 Nov 2005 17:32:49 +0100 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: Start an external editor to edit the current zle buffer Message-ID: <20051104163249.GH27583@ay.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20051104132423.GY27583@ay.vinc17.org> <20051104144356.GF27583@ay.vinc17.org> <20051104154824.GG27583@ay.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.11-vl-20051031 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On 2005-11-04 16:10:49 +0000, Peter Stephenson wrote: > Vincent Lefevre wrote: > > Shouldn't it become part of zle? > > I don't think so. The functions are supplied to be extensible and > flexible. It's hardly harder to use a function widget than a builtin > one and it's much easier to change it. For something like this, which > runs external commands and handles the output, it's also much easier to > write the function in the shell command language than in C. I agree, but this wasn't really my question. The main problem is that this feature isn't documented in zshzle, therefore more difficult to find. > One of the reasons for the new manual roadmap is to indicate things like > the presence of add-on zle functions documented in zshcontrib which users > might otherwise not notice, although it doesn't specifically mention > edit-command-line. I reformulate my question: couldn't edit-command-line become more official and be documented in the zshzle man page? Also, autoload edit-command-line zle -N edit-command-line bindkey '\ee' edit-command-line is more code to type (even if it is done once). Could there be a zsh option so that bindkey '\ee' edit-command-line automatically calls autoload and zle -N if need be? > > > FCEDIT is specific to the fc command. edit-command-line assumes you > > > want to use your normal editor. You can easily change it. > > > > Why doesn't fc assume I want to use my normal editor? > > Historical reasons, presumably, since this came from ksh. It's not much > used. OK. BTW, why is FCEDIT defined by default as "vi"? Why not let it unset, in which case $VISUAL or $EDITOR would be used? -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA