From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29891 invoked from network); 4 Nov 2005 16:11:09 -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:11:09 -0000 Received: (qmail 41266 invoked from network); 4 Nov 2005 16:11:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 16:11:02 -0000 Received: (qmail 24861 invoked by alias); 4 Nov 2005 16:10:55 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9634 Received: (qmail 24849 invoked from network); 4 Nov 2005 16:10:55 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2005 16:10:55 -0000 Received: (qmail 40159 invoked from network); 4 Nov 2005 16:10:55 -0000 Received: from cluster-c.mailcontrol.com (HELO rly27c.srv.mailcontrol.com) (168.143.177.190) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 16:10:53 -0000 Received: from exchange03.csr.com (mailhost1.csr.com [81.105.217.43]) by rly27c.srv.mailcontrol.com (MailControl) with ESMTP id jA4GAowb025471 for ; Fri, 4 Nov 2005 16:10:51 GMT Received: from csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 4 Nov 2005 16:13:17 +0000 To: zsh-users@sunsite.dk Subject: Re: Start an external editor to edit the current zle buffer In-reply-to: <20051104154824.GG27583@ay.vinc17.org> References: <20051104132423.GY27583@ay.vinc17.org> <20051104144356.GF27583@ay.vinc17.org> <20051104154824.GG27583@ay.vinc17.org> Comments: In-reply-to Vincent Lefevre message dated "Fri, 04 Nov 2005 16:48:24 +0100." Date: Fri, 04 Nov 2005 16:10:49 +0000 From: Peter Stephenson Message-ID: X-OriginalArrivalTime: 04 Nov 2005 16:13:17.0020 (UTC) FILETIME=[AA49D9C0:01C5E15A] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-05-40-01 (www.mailcontrol.com) on 10.67.0.137 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 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. 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. > > > 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? Historical reasons, presumably, since this came from ksh. It's not much used. > Is there any reason to have $FCEDIT different from $VISUAL or $EDITOR? Not that I'm aware of. Set it to what you like. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com