From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1502 invoked from network); 4 Nov 2005 15:48:45 -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 15:48:45 -0000 Received: (qmail 22129 invoked from network); 4 Nov 2005 15:48:38 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 15:48:38 -0000 Received: (qmail 18227 invoked by alias); 4 Nov 2005 15:48:31 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9633 Received: (qmail 18208 invoked from network); 4 Nov 2005 15:48:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2005 15:48:30 -0000 Received: (qmail 20956 invoked from network); 4 Nov 2005 15:48:29 -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 15:48:26 -0000 Received: from lefevre by ay.vinc17.org with local (Exim 4.54) id 1EY3nl-00032F-0o; Fri, 04 Nov 2005 16:48:25 +0100 Date: Fri, 4 Nov 2005 16:48:24 +0100 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: Start an external editor to edit the current zle buffer Message-ID: <20051104154824.GG27583@ay.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20051104132423.GY27583@ay.vinc17.org> <20051104144356.GF27583@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=BAYES_00 autolearn=ham version=3.0.4 On 2005-11-04 14:53:43 +0000, Peter Stephenson wrote: > Vincent Lefevre wrote: > > On 2005-11-04 13:49:25 +0000, Peter Stephenson wrote: > > > See the ZLE function edit-command-line supplied with the shell. It's > > > quite short and you might want to tweak it. > > > > Thanks. Is there any reason why it is not available by default and > > not documented in the zshzle man page? > > Yes: it's not part of zle, it's a contributed function and like all such > is documented in zshcontrib and needs to be loaded. Shouldn't it become part of zle? > > Also why does fc use $FCEDIT and not ${VISUAL:-${EDITOR:-vi}} like > > edit-command-line (or the opposite)? > > 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? Is there any reason to have $FCEDIT different from $VISUAL or $EDITOR? -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA