From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2778 invoked from network); 14 Jun 1998 21:20:04 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 14 Jun 1998 21:20:04 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id RAA02217; Sun, 14 Jun 1998 17:15:37 -0400 (EDT) Resent-Date: Sun, 14 Jun 1998 17:15:37 -0400 (EDT) From: "Bart Schaefer" Message-Id: <980614141639.ZM315@candle.brasslantern.com> Date: Sun, 14 Jun 1998 14:16:38 -0700 In-Reply-To: <199806141357.NAA02238@tgape.ed.vnet> Comments: In reply to TGAPE! "Re: 'remove slash' bug" (Jun 14, 1:56pm) References: <199806141357.NAA02238@tgape.ed.vnet> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@math.gatech.edu Subject: Re: 'remove slash' bug MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"N1YW71.0.aY.ur3Xr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4115 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Jun 14, 1:56pm, TGAPE! wrote: } Subject: Re: 'remove slash' bug } } Wayne Davison wrote: } > } > Timothy J Luoma writes: } >> However, there are times when I am in the middle of a path and do } >> control-e to get to the end of the line, and the / I put in (and } >> wanted) is removed. } > } > I haven't managed to reproduce this problem, but I have been meaning } > to look into a problem with the yank command being used right after } > an auto-added slash. I think the yank should leave the slash there } } I can reproduce it. Type } } /usr Hm. What you describe isn't quite the same thing, but I think I've finally got the original complaint figured out, based on what you say. In order for the effect to happen, you must have all of autoremoveslash, alwaystoend, and completeinword set. Starting with this: zsh% /usr/ Move the cursor to the 's'. Press TAB. 3.0.5 --> /usr/ 3.1.4 --> /usr// In both cases, the cursor is at the end of the string. Any following key other than one bound to self-insert will delete the slash that is immediately before the cursor. In 3.1.4, this still leaves the original slash behind, but it was wrong to have inserted a second slash in the first place. In 3.0.5, this (incorrectly?) deletes the only slash. This also works starting with (say) /u/ or /us/, with the cursor on the second slash or the 's'. On Jun 14, 1:56pm, TGAPE! wrote: } Subject: Re: 'remove slash' bug } } This is actually a more general problem, because it doesn't have to be a } slash character which gets deleted. It'll be whatever would be deleted } with a backspace. I can't come up with any case that deletes anything other than slashes or spaces. Here's how to get it to delete a space: zsh% touch /tmp/foo zsh% ls /tm/foo Move the cursor to the 'm' and press TAB. In both 3.0.5 and 3.1.4, this produces "ls /tmp/foo " (note the trailing space). In 3.1.4, typing any further key other than self-insert deletes the trailing space. 3.0.5 leaves the space alone. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com