From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10706 invoked from network); 26 Feb 2009 01:31:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) 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.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Feb 2009 01:31:27 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 12246 invoked from network); 26 Feb 2009 01:31:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Feb 2009 01:31:20 -0000 Received: (qmail 24069 invoked by alias); 26 Feb 2009 01:31:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26608 Received: (qmail 24056 invoked from network); 26 Feb 2009 01:31:15 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 26 Feb 2009 01:31:15 -0000 Received: from vms173009pub.verizon.net (vms173009pub.verizon.net [206.46.173.9]) by bifrost.dotsrc.org (Postfix) with ESMTP id 9DD318058F83 for ; Thu, 26 Feb 2009 02:31:12 +0100 (CET) Received: from torch.brasslantern.com ([173.67.122.60]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KFN00ESMG7PMAMD@vms173009.mailsrvcs.net> for zsh-workers@sunsite.dk; Wed, 25 Feb 2009 19:31:02 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id n1Q1UxZP021821 for ; Wed, 25 Feb 2009 17:31:00 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n1Q1UxTK021820 for zsh-workers@sunsite.dk; Wed, 25 Feb 2009 17:30:59 -0800 From: Bart Schaefer Message-id: <090225173059.ZM21819@torch.brasslantern.com> Date: Wed, 25 Feb 2009 17:30:59 -0800 In-reply-to: <20090225204844.08a39c17@pws-pc> Comments: In reply to Peter Stephenson "Re: globcomplete desctroys file completion" (Feb 25, 8:48pm) References: <090221111624.ZM12907@torch.brasslantern.com> <090221165745.ZM13030@torch.brasslantern.com> <20090225203949.5e203b85@pws-pc> <20090225204844.08a39c17@pws-pc> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@sunsite.dk Subject: Re: globcomplete desctroys file completion MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.92.1/9048/Wed Feb 25 22:08:29 2009 on bifrost X-Virus-Status: Clean On Feb 25, 8:48pm, Peter Stephenson wrote: } Subject: Re: globcomplete desctroys file completion } } Scratch that, it's simpler---we never want two -s's, we just want to } ensure $ISUFFIX is there when needed. This time I do have some evidence } this is doing better things with GLOBCOMPLETE set than previously. This is better, and in fact was something I was about to suggest, but the cursor is still left in the wrong place when a component in the middle of the path is ambiguous. schaefer<505> print T/t/t schaefer<505> print Tmp/texlive/t Cursor should be on the rightmost slash, because "texlive" could also be completed to "texlive2008", but instead cursor is at the end. Take a look at this: schaefer<506> print T*/t*/t schaefer<506> print Tmp/texlive/texmf-local/ Completing default texlive/ texlive/ texlive/ texlive2008/ texlive/ texlive/ texlive2008/ texlive2008/ texlive/ texlive/ texlive2008/ texlive2008/ texlive/ texlive/ texlive2008/ texlive2008/ (menu-select highlight is on the first "texlive/"). If I left-arrow through the menu, I get e.g. schaefer<506> print Tmp/texlive/texmf-config/ schaefer<506> print Tmp/texlive/texmf-var/ schaefer<506> print Tmp/texlive2008/texmf-dist/ This leads me to believe that really the second -s should have been a -S (a suffix, not a hidden suffix) and the first -s in tmp4 was in fact correct. Making that change produces still better results: schaefer<507> print T/t/t schaefer<507> print Tmp/texlive/t Completing corrections texlive/ texlive2008/ Completing original T/t/t However, that does not produce better cursor placement, so I remain puzzled/unconvinced. Also, any comment on the overlapping -W and -p values? What exactly does the doc mean when it says that they are used "together"?