From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul R Newsgroups: gmane.emacs.devel Subject: Re: binding c-h in isearch Date: Wed, 16 Apr 2008 19:44:48 +0200 Message-ID: <87wsmx4ru7.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208369573 3358 80.91.229.12 (16 Apr 2008 18:12:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 18:12:53 +0000 (UTC) Cc: joakim@verona.se, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 16 20:13:28 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 1JmBhv-0003fQ-26 for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 19:46:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmBhG-0006n5-Hy for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 13:45:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmBhB-0006mv-Ki for emacs-devel@gnu.org; Wed, 16 Apr 2008 13:45:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmBh9-0006mO-V9 for emacs-devel@gnu.org; Wed, 16 Apr 2008 13:45:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmBh9-0006mB-PY for emacs-devel@gnu.org; Wed, 16 Apr 2008 13:45:19 -0400 Original-Received: from mu-out-0910.google.com ([209.85.134.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JmBh9-0002sV-Lf for emacs-devel@gnu.org; Wed, 16 Apr 2008 13:45:19 -0400 Original-Received: by mu-out-0910.google.com with SMTP id w8so1112082mue.6 for ; Wed, 16 Apr 2008 10:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=16dN+RBv64i2krml5g4HlevCjEHl1pfO3o/Ap6tS8B8=; b=L6yto1QymJ+g3f2DgpshbB2Bfqcbhjz4U7zFnE+Y8bSOT37+jGWKPCGElags9diZZFI4RUJAXNhHnmEYypLuNntvCp7bcUmYh5s3eF4qzHEfTqxFEFAvh7uJykI+hO1hvGAREUBb3WOCvQsAmOpC1wY0XREmmb2HUtkz4aMuWHw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=SinktbAS016scbpbWduljrtSD5abcY3sv6ll9v+e4SU84rb8/xlhsMKAx0ZN0+zHCYvqTeiToUsHH9hGBXQPLJCOTCuTWIjs8+dPczI7jSDCCAzDRaG3cL8lCxDhe+4RUZCpK+MNsKHyFjW0E6JX8N9cQ8E4HXUNaFIp9jkzA7w= Original-Received: by 10.82.180.10 with SMTP id c10mr405469buf.46.1208367899329; Wed, 16 Apr 2008 10:44:59 -0700 (PDT) Original-Received: from ubuT42 ( [82.242.132.111]) by mx.google.com with ESMTPS id e10sm13295202muf.10.2008.04.16.10.44.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Apr 2008 10:44:49 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Wed\, 16 Apr 2008 11\:28\:12 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:95363 Archived-At: Stefan Monnier writes: > ;; 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? Here, C-h during isearch will exit current isearch session, just like C-x or C-c. IOW, this keystroke will trigger global definition, with first the *side effect* of leaving current isearch session. So I mean, it is not like if we could, for example, *temporarily* check what command is bound to C-w is isearch-mode-map, by typing, in an isearch session, C-h c C-w. It will just return 'kill-region'. My personal point of view : - isearch-mode-help explains how to exit an isearch session, namely C-g to go back to starting point and C-m to leave the point at location found. Any other way to exit has no reason to be supported, or should be mentionned as a feature somewhere. - isearch already rebinds many control caracters, C-h would be one more and quiet an intuitive one So, +1 for C-h bound in isearch-mode-map. > > E.g. provide the generic help on C-h but the isearch-specific help on > C-h C-h, or vice versa? generic help on C-m C-h or C-g C-h ... well, that's not isearch business, is it ? :) -- Paul