From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Patch that adds help to isearch Date: Wed, 30 Nov 2005 04:47:28 +0200 Organization: JURTA Message-ID: <87r78yswf4.fsf@jurta.org> References: <36dd4d936dd9fb.36dd9fb36dd4d9@net.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133322295 19546 80.91.229.2 (30 Nov 2005 03:44:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2005 03:44:55 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 30 04:44:46 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EhItR-0008Se-2D for ged-emacs-devel@m.gmane.org; Wed, 30 Nov 2005 04:44:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhItQ-0002Zr-6h for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2005 22:44:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EhIr2-0001Jl-Pd for emacs-devel@gnu.org; Tue, 29 Nov 2005 22:42:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EhIr0-0001I6-Ct for emacs-devel@gnu.org; Tue, 29 Nov 2005 22:41:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhIqy-0001Hv-KK for emacs-devel@gnu.org; Tue, 29 Nov 2005 22:41:58 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EhIqw-0008Dm-Kw; Tue, 29 Nov 2005 22:41:54 -0500 Original-Received: from mail.neti.ee (80-235-34-14-dsl.mus.estpak.ee [80.235.34.14]) by Relayhost1.neti.ee (Postfix) with ESMTP id 477E716C9; Wed, 30 Nov 2005 05:42:08 +0200 (EET) Original-To: LENNART BORGMAN In-Reply-To: <36dd4d936dd9fb.36dd9fb36dd4d9@net.lu.se> (LENNART BORGMAN's message of "Tue, 29 Nov 2005 11:23:11 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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: news.gmane.org gmane.emacs.devel:46797 Archived-At: > Thanks for the explanation about why C-h is needed for an > experienced user. I think however that enabling the help only for > the state when the search string is empty would be confusing. > I would prefer a defcustom to enable/disable isearch-mode-help on > C-h instead. Could that satisfy experienced users? A key definition is as simple as defcustom. Instead of: (setq isearch-bind-C-h-to-isearch-mode-help t) you can put in .emacs: (define-key map "\C-h" 'isearch-mode-help) The main question is what should be the default. For novices, who don't know how to configure Emacs, the default binding of C-h to `isearch-mode-help' is very helpful. More experienced users can put in .emacs: (define-key isearch-mode-map "\C-h" nil) if C-h is bound to `isearch-mode-help' in isearch.el by default. -- Juri Linkov http://www.jurta.org/emacs/