[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/emacs-24 r107892: Doc fixes for where-is-in
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/emacs-24 r107892: Doc fixes for where-is-internal. |
Date: |
Mon, 23 Apr 2012 11:11:28 +0800 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 107892
fixes bug(s): http://debbugs.gnu.org/10872
committer: Chong Yidong <address@hidden>
branch nick: emacs-24
timestamp: Mon 2012-04-23 11:11:28 +0800
message:
Doc fixes for where-is-internal.
* doc/lispref/keymaps.texi (Scanning Keymaps): Fix description of
NO-REMAP arg to where-is-internal.
* src/keymap.c (where_is_internal): Doc fix (Bug#10872).
modified:
doc/lispref/ChangeLog
doc/lispref/keymaps.texi
src/ChangeLog
src/keymap.c
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog 2012-04-21 19:34:05 +0000
+++ b/doc/lispref/ChangeLog 2012-04-23 03:11:28 +0000
@@ -1,3 +1,8 @@
+2012-04-23 Chong Yidong <address@hidden>
+
+ * keymaps.texi (Scanning Keymaps): Fix description of NO-REMAP arg
+ to where-is-internal (Bug#10872).
+
2012-04-21 Glenn Morris <address@hidden>
* macros.texi (Indenting Macros): Fix typo.
=== modified file 'doc/lispref/keymaps.texi'
--- a/doc/lispref/keymaps.texi 2012-04-17 05:58:34 +0000
+++ b/doc/lispref/keymaps.texi 2012-04-23 03:11:28 +0000
@@ -1904,12 +1904,19 @@
follow indirect keymap bindings. This makes it possible to search for
an indirect definition itself.
-When command remapping is in effect (@pxref{Remapping Commands}),
address@hidden figures out when a command will be run due to
-remapping and reports keys accordingly. It also returns @code{nil} if
address@hidden won't really be run because it has been remapped to some
-other command. However, if @var{no-remap} is address@hidden
address@hidden ignores remappings.
+If another command @var{other-command} is remapped to @var{command}
+(@pxref{Remapping Commands}), this function searches for the bindings
+of @var{other-command} and treats them as though they are also
+bindings for @var{command}. But if the @var{no-remap} argument is
address@hidden, this function instead includes the vector @code{[remap
address@hidden in the list of possible key sequences, without
+searching for the bindings of @var{other-command}.
+
+On the other hand, if @var{command} is remapped to another command,
+this function still returns the original bindings of @var{command},
+even though those keys would actually invoke the other command. To
+determine the remapping status of @var{command}, use the function
address@hidden (@pxref{Remapping Commands}).
@smallexample
@group
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-04-20 17:34:51 +0000
+++ b/src/ChangeLog 2012-04-23 03:11:28 +0000
@@ -1,3 +1,7 @@
+2012-04-23 Chong Yidong <address@hidden>
+
+ * keymap.c (where_is_internal): Doc fix (Bug#10872).
+
2012-04-20 Glenn Morris <address@hidden>
* fileio.c (Fcopy_file, Fset_file_selinux_context):
=== modified file 'src/keymap.c'
--- a/src/keymap.c 2012-03-11 17:08:10 +0000
+++ b/src/keymap.c 2012-04-23 03:11:28 +0000
@@ -2553,7 +2553,8 @@
DEFUN ("where-is-internal", Fwhere_is_internal, Swhere_is_internal, 1, 5, 0,
doc: /* Return list of keys that invoke DEFINITION.
If KEYMAP is a keymap, search only KEYMAP and the global keymap.
-If KEYMAP is nil, search all the currently active keymaps.
+If KEYMAP is nil, search all the currently active keymaps, except
+ for `overriding-local-map' (which is ignored).
If KEYMAP is a list of keymaps, search only those keymaps.
If optional 3rd arg FIRSTONLY is non-nil, return the first key sequence found,
@@ -2568,9 +2569,16 @@
to other keymaps or slots. This makes it possible to search for an
indirect definition itself.
-If optional 5th arg NO-REMAP is non-nil, don't search for key sequences
-that invoke a command which is remapped to DEFINITION, but include the
-remapped command in the returned list. */)
+If another command OTHER-COMMAND is remapped to DEFINITION, search for
+the bindings of OTHER-COMMAND and include them in the returned list.
+But if optional 5th arg NO-REMAP is non-nil, just include the vector
+[remap OTHER-COMMAND] in the returned list, without searching for
+those other bindings.
+
+If DEFINITION is remapped to another command, this function still
+returns its bindings, even though those key sequences actually invoke
+the other command. Use `command-remapping' to find the remapping
+status of DEFINITION. */)
(Lisp_Object definition, Lisp_Object keymap, Lisp_Object firstonly,
Lisp_Object noindirect, Lisp_Object no_remap)
{
/* The keymaps in which to search. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/emacs-24 r107892: Doc fixes for where-is-internal.,
Chong Yidong <=