From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: binding c-h in isearch Date: Sat, 19 Apr 2008 14:20:12 -0700 Message-ID: <001b01c8a263$27d917e0$0200a8c0@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208640123 29898 80.91.229.12 (19 Apr 2008 21:22:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2008 21:22:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Stefan Monnier'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 19 23:22:37 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 1JnKW5-0005tL-Bm for ged-emacs-devel@m.gmane.org; Sat, 19 Apr 2008 23:22:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnKVQ-0006Kw-4N for ged-emacs-devel@m.gmane.org; Sat, 19 Apr 2008 17:21:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JnKUZ-0005jc-Vr for emacs-devel@gnu.org; Sat, 19 Apr 2008 17:21:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JnKUY-0005j0-6M for emacs-devel@gnu.org; Sat, 19 Apr 2008 17:21:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnKUX-0005in-Nx for emacs-devel@gnu.org; Sat, 19 Apr 2008 17:21:01 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JnKUX-00008w-Jj for emacs-devel@gnu.org; Sat, 19 Apr 2008 17:21:01 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m3JLK3fv028614; Sat, 19 Apr 2008 16:20:03 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m3JL3qdU022388; Sat, 19 Apr 2008 15:20:03 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3655325411208639999; Sat, 19 Apr 2008 14:19:59 -0700 Original-Received: from dradamslap1 (/141.144.88.148) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 19 Apr 2008 14:19:59 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acif1sUtjuguG4alTfKltyDo8HoXXgCiVtKg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:95479 Archived-At: > > It is difficult to remmeber all nice features of isearch. > > Would it be possible to bind c-h to isearch-mode-help in isearch? > > 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? > > E.g. provide the generic help on C-h but the isearch-specific help on > C-h C-h, or vice versa? Since this can of worms has been opened and stirred... FWIW, I disagree with the approach being considered (Juri's suggestion etc.). It is complicated for nothing. The simplest approach is the best: C-h during isearch should give the isearch bindings - bind C-h to `isearch-mode-help'. That is the convention, and it is a good one. This is like C-h following any other prefix key. Richard is just wrong about this. Why jump through hoops? If you are isearching and you want the global help, then (guess what?) you simply exit isearch: RET or whatever. Nothing hard about that. Nothing new here. No need for fancy, inconsistent stuff. No need to complicate the UI. Just C-s...C-h to see the isearch bindings and C-s...RET C-h to see the global help.