zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Difficulties with _oldlist
Date: Fri, 10 Sep 2004 01:04:54 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0409092124210.9661@toltec.zanshin.com> (raw)
In-Reply-To: <200409081656.i88Gu7dA011749@news01.csr.com>

On Wed, 8 Sep 2004, Peter Stephenson wrote:

> Bart Schaefer wrote:
> > $WIDGET could be replaced by a different variable, say $WIDGETSTYLE for
> > example, which is set corresponding to the second argument of "zle -C".
> 
> This is the internal implementation.  For a "zle -N" widget $WIDGETSTYLE
> gives the name of the function that implements the widget.

Hmm, interesting.  I'd rather put the name of the function in yet another
variable (WIDGETFUNC ?) and have it available for "zle -C" widgets, too.

For "zle -N" widgets, I think WIDGETSTYLE should initially be unset, so it 
can be tested with [[ -z ]] to differentiate completion from "normal" when 
inside a widget function.  (If it's just the function name, there's no way 
of preventing a function having the same name as a builtin widget, thereby
confusing matters.)


  reply	other threads:[~2004-09-10  8:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-23 15:51 Bart Schaefer
2004-09-08 16:56 ` Peter Stephenson
2004-09-10  8:04   ` Bart Schaefer [this message]
2004-09-10 10:59     ` Peter Stephenson
2004-09-13 13:21       ` 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=Pine.LNX.4.61.0409092124210.9661@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.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).