From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19957 invoked from network); 27 Sep 2005 14:53:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Sep 2005 14:53:50 -0000 Received: (qmail 25359 invoked from network); 27 Sep 2005 14:53:43 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Sep 2005 14:53:43 -0000 Received: (qmail 12822 invoked by alias); 27 Sep 2005 14:53:37 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21770 Received: (qmail 12803 invoked from network); 27 Sep 2005 14:53:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Sep 2005 14:53:35 -0000 Received: (qmail 25090 invoked from network); 27 Sep 2005 14:53:35 -0000 Received: from vms040pub.verizon.net (206.46.252.40) by a.mx.sunsite.dk with SMTP; 27 Sep 2005 14:53:33 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0INH00MDXDCI5292@vms040.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 27 Sep 2005 09:53:06 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j8REr5ba023260 for ; Tue, 27 Sep 2005 07:53:05 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j8REr4th023259 for zsh-workers@sunsite.dk; Tue, 27 Sep 2005 07:53:05 -0700 Date: Tue, 27 Sep 2005 14:53:04 +0000 From: Bart Schaefer Subject: More on getkeycmd() To: zsh-workers@sunsite.dk Message-id: <1050927145304.ZM23258@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 It occurred to me that the patch I posted in 21760 causes longer bindings in the local map to hide prefixes in the global map. That's probably not the desired behavior; the change would be as follows. Should this get committed also? Index: Src/Zle/zle_keymap.c =================================================================== diff -c -r1.11 zle_keymap.c --- Src/Zle/zle_keymap.c 27 Sep 2005 14:40:38 -0000 1.11 +++ Src/Zle/zle_keymap.c 27 Sep 2005 14:47:10 -0000 @@ -1300,10 +1300,9 @@ loc = ((f = keybind(localkeymap, keybuf, &s)) != t_undefinedkey); ispfx = keyisprefix(localkeymap, keybuf); } - if (!loc && !ispfx) { + if (!loc) f = keybind(km, keybuf, &s); - ispfx = keyisprefix(km, keybuf); - } + ispfx |= keyisprefix(km, keybuf); if (f != t_undefinedkey) { lastlen = keybuflen;