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: bogus binding of M-s in Info (was: bogus binding of C-w in isearch editing mode) Date: Thu, 18 Dec 2008 03:34:46 +0200 Organization: JURTA Message-ID: <87k59ye079.fsf@jurta.org> References: <873agnsk1q.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229564541 31085 80.91.229.12 (18 Dec 2008 01:42:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2008 01:42:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 18 02:43:26 2008 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 1LD7vB-0006Jw-77 for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2008 02:43:25 +0100 Original-Received: from localhost ([127.0.0.1]:50616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LD7tz-00007F-58 for ged-emacs-devel@m.gmane.org; Wed, 17 Dec 2008 20:42:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LD7tt-00006v-WF for emacs-devel@gnu.org; Wed, 17 Dec 2008 20:42:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LD7tt-00006Z-8i for emacs-devel@gnu.org; Wed, 17 Dec 2008 20:42:05 -0500 Original-Received: from [199.232.76.173] (port=45086 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LD7tt-00006W-5T for emacs-devel@gnu.org; Wed, 17 Dec 2008 20:42:05 -0500 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]:55654) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LD7ts-0004Al-I3 for emacs-devel@gnu.org; Wed, 17 Dec 2008 20:42:05 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1LD7tq-000Aaq-K6 for emacs-devel@gnu.org; Thu, 18 Dec 2008 03:42:02 +0200 In-Reply-To: <873agnsk1q.fsf@catnip.gol.com> (Miles Bader's message of "Wed, 17 Dec 2008 09:49:05 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: eacc24c597fa83a26e5f02f00d1ff66c X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 6325 [Dec 18 2008] X-SpamTest-Info: {received from trusted relay: common white list} X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: white ip list X-SpamTest-Rate: 10 X-SpamTest-Status: Trusted X-SpamTest-Status-Extended: trusted X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) 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:107017 Archived-At: Currently in Info `M-s' prevents starting a word search with `M-s w' but a word search is very useful in text documents like Info manuals. `M-s' is bound to `Info-search' that duplicates a binding `s' on the same command. Since there are now better ways to search for a regexp or a string in Info manuals using incremental search commands C-s, C-M-s, C-r, C-M-r, I propose to unbind `M-s' from `Info-search' in Info, thus allowing using search commands from the global `M-s' prefix map like a word search `M-s w' and occur `M-s o'. A paragraph about `M-s' can be safely removed from info.texi because the standalone Info reader doesn't bind `M-s'. Index: lisp/info.el =================================================================== RCS file: /sources/emacs/emacs/lisp/info.el,v retrieving revision 1.553 diff -u -r1.553 info.el --- lisp/info.el 3 Dec 2008 05:48:28 -0000 1.553 +++ lisp/info.el 18 Dec 2008 01:32:59 -0000 @@ -3241,8 +3241,6 @@ (define-key map "r" 'Info-history-forward) (define-key map "s" 'Info-search) (define-key map "S" 'Info-search-case-sensitively) - ;; For consistency with Rmail. - (define-key map "\M-s" 'Info-search) (define-key map "\M-n" 'clone-buffer) (define-key map "t" 'Info-top-node) (define-key map "T" 'Info-toc) Index: etc/NEWS =================================================================== RCS file: /sources/emacs/emacs/etc/NEWS,v retrieving revision 1.1951 diff -u -r1.1951 NEWS --- etc/NEWS 18 Dec 2008 01:18:06 -0000 1.1951 +++ etc/NEWS 18 Dec 2008 01:33:20 -0000 @@ -314,6 +314,12 @@ toggle word search. To start nonincremental word search you can now use `M-s w RET' and `M-s w C-r RET' instead of `C-s RET C-w' and `C-r RET C-w'. ++++ +** In Info, `Info-search' is unbound from `M-s' to allow using +`M-s w' for word search. `Info-search' is still bound to `s', +and also `C-s' and `C-M-s' are available for incremental search +through multiple Info nodes. + --- ** In Text mode, `center-line' and `center-paragraph' are rebound from `M-s' and `M-S' to global keys `M-o M-s' and `M-o M-S' on the Index: doc/misc/info.texi =================================================================== RCS file: /sources/emacs/emacs/doc/misc/info.texi,v retrieving revision 1.8 diff -u -r1.8 info.texi --- doc/misc/info.texi 19 Nov 2008 04:28:42 -0000 1.8 +++ doc/misc/info.texi 18 Dec 2008 01:34:05 -0000 @@ -1000,12 +1000,6 @@ puts your cursor at the occurrence of the string, not at the beginning of the node). -@kindex M-s @r{(Info mode)} - In Emacs, @kbd{Meta-s} is equivalent to @kbd{s}. That is for -compatibility with other GNU packages that use @kbd{M-s} for a similar -kind of search command. Both @kbd{s} and @kbd{M-s} run in Emacs the -command @code{Info-search}. - @kindex C-s @r{(Info mode)} @kindex C-r @r{(Info mode)} @findex isearch -- Juri Linkov http://www.jurta.org/emacs/