From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8531 invoked from network); 19 Jan 2009 09:45:14 -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.3 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 09:45:14 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 5749 invoked from network); 19 Jan 2009 09:45:08 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Jan 2009 09:45:08 -0000 Received: (qmail 17839 invoked by alias); 19 Jan 2009 09:45:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26364 Received: (qmail 17830 invoked from network); 19 Jan 2009 09:45:04 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 19 Jan 2009 09:45:04 -0000 Received: from cluster-d.mailcontrol.com (cluster-d.mailcontrol.com [85.115.60.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id BA72680271F0 for ; Mon, 19 Jan 2009 10:45:01 +0100 (CET) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly39d.srv.mailcontrol.com (MailControl) with ESMTP id n0J9j01U028689 for ; Mon, 19 Jan 2009 09:45:00 GMT Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Mon, 19 Jan 2009 09:44:59 +0000 Date: Mon, 19 Jan 2009 09:44:53 +0000 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: changing bindings in isearch mode? Message-ID: <20090119094453.4f66076b@news01> In-Reply-To: References: <18801.32959.693653.15539@gargle.gargle.HOWL> <20090117175659.1a37c70f@pws-pc> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Jan 2009 09:44:59.0934 (UTC) FILETIME=[9847A3E0:01C97A1A] X-Scanned-By: MailControl A_08_51_00 (www.mailcontrol.com) on 10.68.0.149 X-Virus-Scanned: ClamAV 0.92.1/8876/Mon Jan 19 05:24:48 2009 on bifrost X-Virus-Status: Clean On Sat, 17 Jan 2009 13:23:53 -0500 Greg Klanderman wrote: > > >>>>> Peter Stephenson writes: > > > Absolutely, but it's a very tricky change to push the behaviour into > > functions. Translation: it's not clear anyone knows how to do this and > > it's very clear no one has the time to find out. > > I don't think you need (or even want) to push the behavior into > functions; the menu-select widget already uses the "menuselect" > keymap. It looks like it's just casing on the commands that are > bound, not executing them necessarily, and this seems to also be how > the isearch code is written, using tests of the form > > cmd == Th(z_****) > > Just glancing over the code, it would appear not too hard to create a > keymap for isearch, add an isearch-exit widget, and add a case for it > in doisearch. Does that seem like a reasonable solution? Yes, it looks like you're right. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070