From: Zefram <zefram@tao.co.uk>
To: schaefer@brasslantern.com (Bart Schaefer)
Cc: zsh-workers@math.gatech.edu
Subject: Re: PATCH: pass name ($0) and zmult ($1) to user-defined widgets
Date: Fri, 12 Jun 1998 10:37:48 +0100 (BST) [thread overview]
Message-ID: <199806120937.KAA10006@taos.demon.co.uk> (raw)
In-Reply-To: <980612013804.ZM20410@candle.brasslantern.com> from "Bart Schaefer" at Jun 12, 98 01:38:04 am
Bart Schaefer wrote:
>User-defined widgets should be able to change their behavior or repeat
>their action when given a digit-argument.
Yes. But that should not be done via positional parameters. I have
deliberately avoided passing arguments in positional parameters, so
that one widget can reliably call another without having to fiddle with
the parameters. The numeric prefix should go into a special parameter,
or be accessible by some other mechanism.
> They also ought to have a
>usable $0 when FUNCTION_ARGZERO is set; I chose to pass the widget name,
>so if you bind the same function to different widgets you can test for
>$0 to tweak the behavior.
That's a good idea.
-zefram
next prev parent reply other threads:[~1998-06-12 9:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-12 8:38 Bart Schaefer
1998-06-12 9:37 ` Zefram [this message]
1998-06-12 15:54 ` Bart Schaefer
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=199806120937.KAA10006@taos.demon.co.uk \
--to=zefram@tao.co.uk \
--cc=schaefer@brasslantern.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).