Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Chain widgets call (was: RE: PATCH: more fun with `zle')
- X-seq: zsh-workers 6997
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Chain widgets call (was: RE: PATCH: more fun with `zle')
- Date: Wed, 7 Jul 1999 12:27:29 +0400
- Importance: Normal
- In-reply-to: <000401bec850$983101c0$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> ((${+NUMERIC})) || zle .set-local-history
> if [[ $WIDGET == .* ]]
> then
> zle $WIDGET
> else
> zle .$WIDGET
> fi
> ((${+NUMERIC})) || zle .set-local-history
>
And looking at this I realised, that it has some basic problem. Every other
*history* widget could already be redefined to whatever you like. What I want to
do is ismply to set special environment and call _original_ widget ... that is
not quite the same as calling .immortal version. But there is no way to "chain"
definitions ... Doing it would probably mean
- special syntax to "push" instead of "replace" definition
- special syntax with meaning "call previous definition for current widget"
And the question is, how generally useful is it at all?
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author