From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9176 invoked from network); 7 Jul 1999 08:27:45 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Jul 1999 08:27:44 -0000 Received: (qmail 1556 invoked by alias); 7 Jul 1999 08:27:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6997 Received: (qmail 1549 invoked from network); 7 Jul 1999 08:27:39 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: Subject: Chain widgets call (was: RE: PATCH: more fun with `zle') Date: Wed, 7 Jul 1999 12:27:29 +0400 Message-ID: <000501bec852$8d728a40$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <000401bec850$983101c0$21c9ca95@mow.siemens.ru> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > > ((${+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