From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19576 invoked from network); 30 Jul 2006 17:46:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) 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.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Jul 2006 17:46:51 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 40033 invoked from network); 30 Jul 2006 17:46:43 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Jul 2006 17:46:42 -0000 Received: (qmail 18315 invoked by alias); 30 Jul 2006 17:46:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10561 Received: (qmail 18306 invoked from network); 30 Jul 2006 17:46:34 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 30 Jul 2006 17:46:34 -0000 Received: (qmail 38881 invoked from network); 30 Jul 2006 17:46:34 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 30 Jul 2006 17:46:33 -0000 Received: from torch.brasslantern.com ([71.116.116.250]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J3800JMV9D2DV89@vms042.mailsrvcs.net> for zsh-users@sunsite.dk; Sun, 30 Jul 2006 12:46:15 -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 k6UHkD2T013295; Sun, 30 Jul 2006 10:46:14 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k6UHkDmX013294; Sun, 30 Jul 2006 10:46:13 -0700 Date: Sun, 30 Jul 2006 10:46:13 -0700 From: Bart Schaefer Subject: Re: Rebinding a widget within a keymap In-reply-to: <200607301718.k6UHINXk002674@pwslaptop.csr.com> To: Peter Stephenson , zsh-users@sunsite.dk Message-id: <060730104613.ZM13293@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <200607301718.k6UHINXk002674@pwslaptop.csr.com> Comments: In reply to Peter Stephenson "Re: Rebinding a widget within a keymap" (Jul 30, 6:18pm) On Jul 30, 6:18pm, Peter Stephenson wrote: } } If it were done in C, I'd be tempted to use a more explicit indication } that there was (in effect) a namespace hierarchy in operation and have } the overriding widget name be $KEYMAP/$WIDGET or something like that. This is not a bad plan, but it plays havoc with #autoload and #compdef, which are going to install the function or widget under its base file name, which obviously can't have a slash in it. Yes, you can sort of work around it with #compdef -K, but that's ugly. Choosing a character other than slash (perhaps dot? Or does that break on Cygwin?) would be sufficient.