zsh-workers
 help / color / mirror / code / Atom feed
From: Andrew Main <zefram@tao.co.uk>
To: aheading@jpmorgan.com (Anthony Heading)
Cc: zsh-workers@math.gatech.edu
Subject: Re: up-line-or-search still 'fixed'!
Date: Tue, 28 Apr 1998 15:08:04 +0100 (BST)	[thread overview]
Message-ID: <199804281408.PAA32237@taos.demon.co.uk> (raw)
In-Reply-To: <19980428143325.59341@gmp-fores1.uk.jpmorgan.com> from "Anthony Heading" at Apr 28, 98 02:33:25 pm

Anthony Heading wrote:
>ZLE_HISTSEARCH has been excised, and histpos is no longer a static variable,
>so there's no record of how far through a word the search should be keyed from.

Yes.  That's why I'm unwilling to go back to the old behaviour.
The behaviour of up-line-or-search used to depend on whether the
immediately preceding editing command was also up-line-or-search.
The model I'm trying to move ZLE to has the effects of each editing
command as independent as possible of other commands, so that eventually
most of them can be separated into modules or even implemented purely
as shell functions.  Each of the ZLE_* flags violates this principle to
some extent, so I'm trying to remove them as far as possible (which will
not be completely).

I've been considering other ways of recording the bits of state that the
ZLE_* flags and various static variables contain.  I'd like everything to
be user-accessible, for widgets.  In a future version it will definitely
be possible to implement the old up-line-or-search, if one really wants
to.  But for the moment it just doesn't fit into the ZLE architecture.

How would people feel about making up-line-or-search do a
history-beginning-search-backwards?  This would be a lot closer to the
old behaviour, differing only in the resulting cursor position.

-zefram


  reply	other threads:[~1998-04-28 14:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <aheading@jpmorgan.com>
1998-02-09 13:23 ` Zle bug Wez Furlong
1998-04-28 12:34   ` up-line-or-search still 'fixed'! Anthony Heading
1998-04-28 13:21     ` Andy Wick
1998-04-28 13:33     ` Anthony Heading
1998-04-28 14:08       ` Andrew Main [this message]
1998-06-09 13:13         ` Anthony Heading
1998-06-09 15:22           ` Bart Schaefer
1998-06-09 15:50             ` Bruce Stephens
1998-06-09 18:42               ` Bart Schaefer
1998-06-10 10:14                 ` Bruce Stephens
1998-06-10 10:31                   ` Zefram
1998-06-10 11:57                     ` Bruce Stephens
1998-06-10 17:13                       ` Bart Schaefer
1998-06-10  5:18             ` message numbers in mla Geoff Wing
1998-06-22 11:16               ` Geoff Wing
1998-06-22 16:17                 ` Bart Schaefer
1998-06-22 17:38                   ` Richard Coleman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199804281408.PAA32237@taos.demon.co.uk \
    --to=zefram@tao.co.uk \
    --cc=aheading@jpmorgan.com \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).