unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: emacs-devel@gnu.org
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	[thread overview]
Message-ID: <87k59ye079.fsf@jurta.org> (raw)
In-Reply-To: <873agnsk1q.fsf@catnip.gol.com> (Miles Bader's message of "Wed, 17 Dec 2008 09:49:05 +0900")

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/




  parent reply	other threads:[~2008-12-18  1:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17  0:49 bogus binding of C-w in isearch editing mode Miles Bader
2008-12-17  1:30 ` Juri Linkov
2008-12-17  3:12   ` Miles Bader
2008-12-17  5:47     ` Stefan Monnier
2008-12-17  5:55       ` Miles Bader
2008-12-18  1:19       ` Juri Linkov
2008-12-18  1:34 ` Juri Linkov [this message]
2008-12-18  3:22   ` bogus binding of M-s in Info Miles Bader
2008-12-19  0:36     ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k59ye079.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).