zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: RE: PATCH: completion parameters etc.
Date: Mon, 1 Mar 1999 13:41:28 +0100 (MET)	[thread overview]
Message-ID: <199903011241.NAA14660@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Mon, 1 Mar 1999 15:31:31 +0300


Andrej Borsenkow wrote:

> Aha! I had slightly different idea, but yourth is probably more general
> anyway ... But for the record ...
> 
> Currently (not as current already :-) we have several ad hoc builtin
> completion widgets and use them to describe behaviour of user-defined ones.
> My suggestion was actually to define a set of per-widget parameters that
> describe how completion behaves and use zle command to set them.
> 
> I call them parameters and not flags because I expect some of them to take
> arguments. The problem is to find out the proper set of orthogonal features.
> At least list, menu, expand, complete seem to be quite independent. In this
> way one could define a widget, that would e.g. list possible expansion (yep,
> we already have such a beast). And with menu parameter we could say, at
> which attempt should menu start. Zero (disable), one (zsh traditional), two
> (bash).
> 
> But here the question: how do your state parameters interact with global
> options? Such as automenu etc?

With the new compstate-keys we could almost avoid having to give the
name of a builtin completion widget to `zle -C' (since users can
re-implement anything). But I'd be against this, because (and this is
the answer to your question) I think it is very convenient to have a
simple way to set the initial values for the keys in a way that make
things behave like the widgets one is used to (if they are left
untouched by the widget). I.e. currently the `emulated' builtin widget
and the option settings are used to set the values when the completion
widget is called. After the widget exits, the code uses the current
values, so if the widget changed them, the behavior will differ. Of
course, options will not be altered by the code.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-03-01 12:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-01 12:41 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-03-01 13:29 Sven Wischnowsky
1999-03-01 12:10 Sven Wischnowsky
1999-03-01 12:31 ` Andrej Borsenkow
1999-03-01 13:04 ` Peter Stephenson

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=199903011241.NAA14660@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --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).