From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id QAA21280 for ; Tue, 16 Jul 1996 16:15:17 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id CAA27254; Tue, 16 Jul 1996 02:05:40 -0400 (EDT) Resent-Date: Tue, 16 Jul 1996 02:05:40 -0400 (EDT) From: "Bart Schaefer" Message-Id: <960715230556.ZM1690@candle.brasslantern.com> Date: Mon, 15 Jul 1996 23:05:55 -0700 Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.702 02jul96) To: zsh-workers@math.gatech.edu Subject: setopt globcomplete screws up accept-and-menu-complete MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"769zn2.0.nf6.p4pwn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1663 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu automenu on completealiases off completeinword on globcomplete on menucomplete off "^X^I" accept-and-menu-complete zagzig<1> echo $ZSH_VERSION 3.0-pre3 zagzig<2> ls -l z* zagzig<2> ls -l zle_bindings.c zagzig<2> ls -l zle_bindings.c z*zle_bindings.pro ls: z*zle_bindings.pro: No such file or directory Incidentally, 3.0-pre2 behaves slightly differently: zagzig[72] ls -l z* zagzig[72] ls -l zle_bindings.c zagzig[72] ls -l zle_bindings.c z\*zle_bindings.pro The following seems to fix acceptandmenucomplete() in pre3. Am I off base? *** zsh-3.0-pre3/Src/zle_tricky.c Mon Jul 15 00:07:23 1996 --- zsh-3.0-pre3-work/Src/zle_tricky.c Mon Jul 15 22:46:49 1996 *************** *** 353,359 **** inststrlen(" ", 1, 1); if (qparampre) inststrlen(qparampre, 1, qparprelen); ! if (lpre) inststrlen(lpre, 1, -1); if (lsuf) inststrlen(lsuf, 0, -1); --- 353,359 ---- inststrlen(" ", 1, 1); if (qparampre) inststrlen(qparampre, 1, qparprelen); ! if (lpre && (unset(GLOBCOMPLETE) || !hasspecial(lpre))) inststrlen(lpre, 1, -1); if (lsuf) inststrlen(lsuf, 0, -1); *************** -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.nbn.com/people/lantern New male in /home/schaefer: >N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"