From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26720 invoked from network); 16 Aug 2004 06:49:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Aug 2004 06:49:52 -0000 Received: (qmail 96869 invoked from network); 16 Aug 2004 06:49:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Aug 2004 06:49:46 -0000 Received: (qmail 6317 invoked by alias); 16 Aug 2004 06:48:48 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7860 Received: (qmail 6307 invoked from network); 16 Aug 2004 06:48:48 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 16 Aug 2004 06:48:48 -0000 Received: (qmail 92728 invoked from network); 16 Aug 2004 06:46:50 -0000 Received: from amsfep18-int.chello.nl (213.46.243.13) by a.mx.sunsite.dk with SMTP; 16 Aug 2004 06:46:48 -0000 Received: from localhost ([213.89.229.53]) by amsfep18-int.chello.nl (InterMail vM.6.00.05.02 201-2115-109-103-20031105) with ESMTP id <20040816064647.WLQB10747.amsfep18-int.chello.nl@localhost> for ; Mon, 16 Aug 2004 08:46:47 +0200 Received: from jesper by localhost with local (Exim 4.34) id 1BwbGN-0004j9-0r for zsh-users@sunsite.dk; Mon, 16 Aug 2004 08:46:35 +0200 Date: Mon, 16 Aug 2004 08:46:35 +0200 From: Jesper Holmberg To: Zsh-users List Subject: Re: insert-last-word makes space disappear Message-ID: <20040816064634.GR1191@localhost> Mail-Followup-To: Zsh-users List References: <20040813082318.GN1191@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040722i Sender: Jesper Holmberg X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.6 required=6.0 tests=BAYES_30,FROM_ENDS_IN_NUMS, RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.6 * On Sat Aug 14, Bart Schaefer wrote: > On Fri, 13 Aug 2004, Jesper Holmberg wrote: > > > What happens is that the combination of menu-complete and > > insert-last-word (bound to alt-.) sometimes makes a vital space > > disappear on the command line. > > I suspect that you don't really have alt-. bound to insert-last-word, > or more precisely that you have replaced the builtin insert-last-word > widget with a user-defined widget such as smart-insert-last-word from > the Functions/Zle directory. Yes, I do use smart-insert-last-word, sorry for the confusion. I have now added your LBUFFER+='' trick to the start of this function, and so far it seems to be working well. I'll report back if I find any problems. As for the long-time solution, I suppose others are better fit than me to tackle this. Thank you for your help, Bart! Jesper