From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26433 invoked from network); 23 Apr 2006 15:53:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Apr 2006 15:53:41 -0000 Received: (qmail 78046 invoked from network); 23 Apr 2006 15:53:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Apr 2006 15:53:33 -0000 Received: (qmail 26248 invoked by alias); 23 Apr 2006 15:53:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10170 Received: (qmail 26239 invoked from network); 23 Apr 2006 15:53:23 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Apr 2006 15:53:23 -0000 Received: (qmail 76923 invoked from network); 23 Apr 2006 15:53:23 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 23 Apr 2006 15:53:21 -0000 Received: from torch.brasslantern.com ([71.116.76.26]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IY600H87MSV8XE3@vms048.mailsrvcs.net> for zsh-users@sunsite.dk; Sun, 23 Apr 2006 10:53:20 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id k3NFrAPR031493 for ; Sun, 23 Apr 2006 08:53:19 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k3NFrAbc031492 for zsh-users@sunsite.dk; Sun, 23 Apr 2006 08:53:10 -0700 Date: Sun, 23 Apr 2006 08:53:10 -0700 From: Bart Schaefer Subject: Re: Problem with motion commands defined using match-word-by-style used with vi-delete In-reply-to: To: zsh-users@sunsite.dk Message-id: <060423085310.ZM31491@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <060421220035.ZM7625@torch.brasslantern.com> <060422113544.ZM9246@torch.brasslantern.com> <060422230929.ZM9841@torch.brasslantern.com> Comments: In reply to "Nikolai Weibull" "Re: Problem with motion commands defined using match-word-by-style used with vi-delete" (Apr 23, 10:57am) On Apr 23, 10:57am, Nikolai Weibull wrote: } Subject: Re: Problem with motion commands defined using match-word-by-styl } } > In the short term, I think it'd work to reset $WIDGET yourself: } > } > local WIDGET=$motion_command } > zle $motion_command -n $count } } WIDGET is, sadly, a read-only variable. Declaring it "local" should circumvent that. You might need "local -h", now that I think of it. } I fear my time would be } better spent implementing .recursive-edit-read-one-key. There must be a better name for it than that. GNU emacs appears to call it read-key-sequence.