From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: binding c-h in isearch Date: Thu, 17 Apr 2008 20:42:33 -0400 Message-ID: References: <87d4oom6fm.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208479375 1866 80.91.229.12 (18 Apr 2008 00:42:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Apr 2008 00:42:55 +0000 (UTC) Cc: joakim@verona.se, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 18 02:43:31 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JmehL-000541-6N for ged-emacs-devel@m.gmane.org; Fri, 18 Apr 2008 02:43:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jmegg-0007O2-GB for ged-emacs-devel@m.gmane.org; Thu, 17 Apr 2008 20:42:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jmegb-0007Nn-Oa for emacs-devel@gnu.org; Thu, 17 Apr 2008 20:42:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmegZ-0007NL-Ob for emacs-devel@gnu.org; Thu, 17 Apr 2008 20:42:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmegZ-0007NI-Ls for emacs-devel@gnu.org; Thu, 17 Apr 2008 20:42:39 -0400 Original-Received: from 76-10-171-8.dsl.teksavvy.com ([76.10.171.8] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JmegZ-0004pJ-DF for emacs-devel@gnu.org; Thu, 17 Apr 2008 20:42:39 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 76FAEB41D5; Thu, 17 Apr 2008 20:42:33 -0400 (EDT) In-Reply-To: <87d4oom6fm.fsf@jurta.org> (Juri Linkov's message of "Fri, 18 Apr 2008 02:14:05 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:95418 Archived-At: >> There's the following code in isearch.el: >> >> ;; Turned off because I find I expect to get the global definition--rms. >> ;; ;; Instead bind C-h to special help command for isearch-mode. >> ;; (define-key map "\C-h" 'isearch-mode-help) >> >> So it seems that Richard found it inconvenient. Could someone try and >> work out some clever way to reconcile the two functionalities? > I think a good binding for C-h in isearch-mode would be the following: > (define-key isearch-mode-map "\C-h" help-map) > I gives what Richard wants since it uses the global definition of C-h, > and still it is intuitive to use just like its global definition when > a minor mode is active: > C-h m describes the isearch mode among other minor modes, Sounds good, indeed. Could we tweak this so it gives an info closer to what isearch-help-mode gives? I.e. move the info from isearch-forward's docstring to isearch-mode's docstring, and tweka C-h m so that isearch-mode's info comes first. Stefan