From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6230 invoked from network); 13 Jun 1998 04:09:31 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 13 Jun 1998 04:09:31 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id AAA11032; Sat, 13 Jun 1998 00:05:31 -0400 (EDT) Resent-Date: Sat, 13 Jun 1998 00:05:31 -0400 (EDT) From: "Bart Schaefer" Message-Id: <980612210613.ZM24296@candle.brasslantern.com> Date: Fri, 12 Jun 1998 21:06:13 -0700 In-Reply-To: <199806100851.BAA05622@bebop.clari.net> Comments: In reply to Wayne Davison "PATCH: even better history-search-{for,back}ward for 3.1.4" (Jun 10, 1:51am) References: <199806100851.BAA05622@bebop.clari.net> X-Mailer: Z-Mail (5.0.0 30July97) To: Wayne Davison Subject: Re: PATCH: even better history-search-{for,back}ward for 3.1.4 Cc: zsh-workers@math.gatech.edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"jsfGD3.0.Ji2.BgVWr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4106 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu } > I hope not ... the new code ought to search for "fc" (without the } > space), } } No, the only time history-search-backward omits the space is if you } start the search without a space on the line That means that a line consisting of exactly one word, say "ls", does not match a search for `a line beginning with the first word of "ls -l"'. It also means that a line beginning with "ls " (tab) won't match. I see that this has actually been a bug all along, and your patch is at least better in that you can get rid of the space by cursor positioning; but surely if metadiffer() can't handle `word boundary' as a token, then it should get special-cased in the caller rather than using space as a poor substitute ... -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com