Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Feature Patch: Use completion to view parameter values
- X-seq: zsh-workers 48335
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Cc: Marlon Richert <marlon.richert@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Feature Patch: Use completion to view parameter values
- Date: Mon, 29 Mar 2021 21:10:36 +0100 (BST)
- Archived-at: <https://zsh.org/workers/48335>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-03/491108023.890825.1617048636897%40mail2.virginmedia.com>
- Importance: Medium
- In-reply-to: <CAH+w=7bD9bA-AKV4NoQ9YZVM_VpSMgX8GcLjSVhgP06KYokM_A@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDtf6JqSn86duXjEuQFXGKJn8COcxnEypoOUV=V63SsdPQ@mail.gmail.com> <20210329073913.GP18178@tarpaulin.shahaf.local2> <CAHLkEDuHjvRhXhcX4iqZ0mJuAabcpSnRikunLeK9Y2Ucjhf0oQ@mail.gmail.com> <20210329171120.GA6044@tarpaulin.shahaf.local2> <CAH+w=7bD9bA-AKV4NoQ9YZVM_VpSMgX8GcLjSVhgP06KYokM_A@mail.gmail.com>
> On 29 March 2021 at 18:20 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
>
> On Mon, Mar 29, 2021 at 10:11 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > I think that's right. -workers@: Is it possible for a non-PM_SPECIAL
> > parameter have a custom getfn?
>
> Only with the zsh/param/private module, I think, and in that case the
> getfn is just a wrapper around the default and doesn't add any
> side-effects.
I think it depends a bit what you mean by "custom" --- getfn's can be
as generic as you like, but it's probably safe to say that a function
that isn't getting and setting straight data, whatever its source,
ought to be marked SPECIAL or isn't really playing by the rules.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author