From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6502 invoked from network); 19 Jan 2009 17:18:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) 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.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Jan 2009 17:18:39 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 25596 invoked from network); 19 Jan 2009 17:18:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Jan 2009 17:18:34 -0000 Received: (qmail 12572 invoked by alias); 19 Jan 2009 17:18:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26368 Received: (qmail 12560 invoked from network); 19 Jan 2009 17:18:27 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 19 Jan 2009 17:18:27 -0000 Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by bifrost.dotsrc.org (Postfix) with ESMTP id 63EDA80271F0 for ; Mon, 19 Jan 2009 18:18:17 +0100 (CET) Received: from torch.brasslantern.com ([96.238.220.215]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0KDQ00N6WAPZ4BF1@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 19 Jan 2009 11:18:04 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id n0JHHvk2005346 for ; Mon, 19 Jan 2009 09:17:58 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n0JHHvKs005345 for zsh-workers@sunsite.dk; Mon, 19 Jan 2009 09:17:57 -0800 Date: Mon, 19 Jan 2009 09:17:55 -0800 From: Bart Schaefer Subject: Re: changing bindings in isearch mode? In-reply-to: <20090119121204.4697b6a2@news01> To: zsh-workers@sunsite.dk Message-id: <090119091757.ZM5344@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <18801.32959.693653.15539@gargle.gargle.HOWL> <20090117175659.1a37c70f@pws-pc> <20090119094453.4f66076b@news01> <20090119121204.4697b6a2@news01> Comments: In reply to Peter Stephenson "Re: changing bindings in isearch mode?" (Jan 19, 12:12pm) X-Virus-Scanned: ClamAV 0.92.1/8877/Mon Jan 19 11:18:35 2009 on bifrost X-Virus-Status: Clean On Jan 19, 12:12pm, Peter Stephenson wrote: } } I was indeed thinking about this over the weekend and why no one had } done it before. It really does look like it's that simple; this is } quite a lot of oomph for a small patch. The keymap is a good thing, but I suspect the reasons no one's bothered before include (1) accept-search is no different than undefined-key in this context, (2) if the keymap exists, it's possible to do something moderately stupid like "bindkey -A main isearch", and (3) the *real* oomph would come if user-defined widgets were usable in isearch mode (and the widgets in that mode had distinct names). } The name "accept-search" exercised me a bit. [...] (You could bind it } for use in your own search mode, for example.) You'd also have to define it with "zle -N" in that case, though, and there follows the confusion as to why your custom widget doesn't get called when the accept-search key is struck in isearch mode. --