From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [comp.emacs] Re: Search highlighted region Date: Wed, 19 Jan 2005 01:48:12 +0200 Organization: JURTA Message-ID: <87wtuajo3n.fsf@jurta.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1106092384 15770 80.91.229.6 (18 Jan 2005 23:53:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jan 2005 23:53:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 19 00:52:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cr39d-0002mz-00 for ; Wed, 19 Jan 2005 00:52:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cr3LY-0000u3-8Z for ged-emacs-devel@m.gmane.org; Tue, 18 Jan 2005 19:05:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cr3KG-0000jK-Pm for emacs-devel@gnu.org; Tue, 18 Jan 2005 19:03:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cr3KD-0000i2-Mk for emacs-devel@gnu.org; Tue, 18 Jan 2005 19:03:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cr3KD-0000hi-4o for emacs-devel@gnu.org; Tue, 18 Jan 2005 19:03:53 -0500 Original-Received: from [194.126.101.111] (helo=MXR-5.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cr36l-0004g4-WD; Tue, 18 Jan 2005 18:50:00 -0500 Original-Received: from mail.neti.ee (80-235-33-91-dsl.mus.estpak.ee [80.235.33.91]) by MXR-5.estpak.ee (Postfix) with ESMTP id AD2DA122A11; Wed, 19 Jan 2005 01:49:57 +0200 (EET) Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "Tue, 18 Jan 2005 12:23:36 +0100") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:32351 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32351 David Kastrup writes: > bojohan+news@dd.chalmers.se (Johan Bockg=E5rd) writes: >> isearch.el contains this comment though: >> >> ;; Turned off because I find I expect to get the global definition--r= ms. >> ;; ;; Instead bind C-h to special help command for isearch-mode. >> ;; (define-key map "\C-h" 'isearch-mode-help) > > Well, I disagree with Richard's assessment here. In all other cases, > typing something "partially" gives us a good C-h behavior, like when > typing C-x v C-h or something. I don't think it is too hard to type > to exit an isearch if you really want the top-level help. I agree that it's better to bind C-h to isearch-mode-help by default. But is it possible to unbind it in .emacs for those users who want to get the top-level help with C-h? In older versions of isearch.el there was such a comment: ;; You can reenable global keys by binding them locally to nil. ;; For the help char this doesnt work quite as expected because ;; isearch-mode is not a major mode. Also the echo area is not ;; restored after the help command while isearch-mode is ;; still active. Furthermore, we should not assume that the ;; help-command is on C-h. But here is how it would be done: ;; (define-key map "\C-h" nil) Perhaps this comment should be restored in isearch.el after uncommenting the line with C-h binding. And then what about [f1] and [help] keys? --=20 Juri Linkov http://www.jurta.org/emacs/