From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 574 invoked from network); 10 Jun 1998 17:18:21 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 10 Jun 1998 17:18:21 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id NAA14573; Wed, 10 Jun 1998 13:12:34 -0400 (EDT) Resent-Date: Wed, 10 Jun 1998 13:12:34 -0400 (EDT) From: "Bart Schaefer" Message-Id: <980610101315.ZM12049@candle.brasslantern.com> Date: Wed, 10 Jun 1998 10:13:15 -0700 In-Reply-To: Comments: In reply to Bruce Stephens "Re: up-line-or-search still 'fixed'!" (Jun 10, 11:14am) References: <19980428143325.59341@gmp-fores1.uk.jpmorgan.com> <199804281408.PAA32237@taos.demon.co.uk> <19980609141304.41665@gmp-fores1.uk.jpmorgan.com> <980609082238.ZM5717@candle.brasslantern.com> <980609114223.ZM6613@candle.brasslantern.com> <199806101031.LAA12567@taos.demon.co.uk> In-Reply-To: <199806101031.LAA12567@taos.demon.co.uk> Comments: In reply to Zefram "Re: up-line-or-search still 'fixed'!" (Jun 10, 11:31am) In-Reply-To: Comments: In reply to Bruce Stephens "Re: up-line-or-search still 'fixed'!" (Jun 10, 12:57pm) X-Mailer: Z-Mail (5.0.0 30July97) To: Bruce Stephens , zsh-workers@math.gatech.edu, Zefram Subject: Re: up-line-or-search still 'fixed'! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"Rv4k81.0.eZ3.1whVr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4090 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Jun 10, 12:57pm, Bruce Stephens wrote: } Subject: Re: up-line-or-search still 'fixed'! } } Zefram writes: } } > Bruce Stephens wrote: } > >Another one---which I think I'd find acceptable---would be not to move } > >the cursor, so history-search-backward would always search for the } > >text before the cursor. Or has that been tried, and people hated it? } > } > That's exactly what history-beginning-search-* do. } } Doh. And it's even what M-p, M-n are bound to. So is the problem } that people really like(d) the behaviour of going to the end of the } line? No; I explained what the problems are: (1) history-search-*ward now match only complete words; they used to match prefixes of words too. (2) history-beginning-search-*ward match across word boundaries; the desired behavior is to stop matching at the first word boundary (or before, see (1)). (3) *-line-or-search, what we really want to use, are affected by the implementation of history-search-*ward. The thing with the cursor moving to the end of the line is simply there to "look like emacs". (In emacs shell mode, if you hit return with the cursor in the middle of the line, it acts like zsh's accept-and-hold, but if you hit return at the end of the line it acts like accept-line. So history searches in emacs always place the cursor at end of the line, and Paul F. made zsh act the same.) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com