zsh-workers
 help / color / mirror / code / Atom feed
From: Adam Spiers <adam@thelonious.new.ox.ac.uk>
To: Zsh hackers list <zsh-workers@sunsite.auc.dk>
Subject: Re: PATCH: 3.1.6-pws-6: compdef -K
Date: Wed, 29 Sep 1999 17:40:40 +0100	[thread overview]
Message-ID: <19990929174040.A14436@thelonious.new.ox.ac.uk> (raw)
In-Reply-To: <9909291537.AA22206@ibmth.df.unipi.it>

Peter Stephenson (pws@ibmth.df.unipi.it) wrote:
> This implements compdef -K, which is like compdef -k but you can define
> multiple widgets to use the same function.  One use of this is to create
> completion and listing widgets simultaneously, but I've used it to make
> _history_complete_word work better: it now defines two widgets,
> _history-complete-older and _history-complete-newer, which it can use to
> decide which way it's going.

Nice; thanks Peter.  I'm a bit snowed under at the moment, but I will
fix _history_complete_word ASAP (I hadn't twigged that you need to
deal with when compstate[insert] is set to something other than a
number).

> for some other reason even
> with history_stop set it won't stop cycling through them.

Does it stop in one direction only, or neither?  If only one, it's
because of compstate[nmatches] returning all matches before duplicate
removal.  If neither, my code is even worse than I thought, which
wouldn't surprise me much :-)


      reply	other threads:[~1999-09-29 16:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-29 15:37 Peter Stephenson
1999-09-29 16:40 ` Adam Spiers [this message]

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=19990929174040.A14436@thelonious.new.ox.ac.uk \
    --to=adam@thelonious.new.ox.ac.uk \
    --cc=adam@spiers.net \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).