aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChong Yidong2012-04-23 11:11:28 +0800
committerChong Yidong2012-04-23 11:11:28 +0800
commit9ec7751f83254ee3bc13030b7933d1b454c33cd5 (patch)
tree59c317ef2fadc671bf2c9aa87232f148a46f7f5c /doc
parentd55486c7f89d12ab799c7bf631b86fb0ccf52e52 (diff)
downloademacs-9ec7751f83254ee3bc13030b7933d1b454c33cd5.tar.gz
emacs-9ec7751f83254ee3bc13030b7933d1b454c33cd5.zip
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).
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/keymaps.texi19
2 files changed, 18 insertions, 6 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index fa2b3386d19..1dbc35d46de 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12012-04-23 Chong Yidong <cyd@gnu.org>
2
3 * keymaps.texi (Scanning Keymaps): Fix description of NO-REMAP arg
4 to where-is-internal (Bug#10872).
5
12012-04-21 Glenn Morris <rgm@gnu.org> 62012-04-21 Glenn Morris <rgm@gnu.org>
2 7
3 * macros.texi (Indenting Macros): Fix typo. 8 * macros.texi (Indenting Macros): Fix typo.
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi
index f1d4690d470..f67174b6a52 100644
--- a/doc/lispref/keymaps.texi
+++ b/doc/lispref/keymaps.texi
@@ -1904,12 +1904,19 @@ If @var{noindirect} is non-@code{nil}, @code{where-is-internal} doesn't
1904follow indirect keymap bindings. This makes it possible to search for 1904follow indirect keymap bindings. This makes it possible to search for
1905an indirect definition itself. 1905an indirect definition itself.
1906 1906
1907When command remapping is in effect (@pxref{Remapping Commands}), 1907If another command @var{other-command} is remapped to @var{command}
1908@code{where-is-internal} figures out when a command will be run due to 1908(@pxref{Remapping Commands}), this function searches for the bindings
1909remapping and reports keys accordingly. It also returns @code{nil} if 1909of @var{other-command} and treats them as though they are also
1910@var{command} won't really be run because it has been remapped to some 1910bindings for @var{command}. But if the @var{no-remap} argument is
1911other command. However, if @var{no-remap} is non-@code{nil}. 1911non-@code{nil}, this function instead includes the vector @code{[remap
1912@code{where-is-internal} ignores remappings. 1912@var{other-command}]} in the list of possible key sequences, without
1913searching for the bindings of @var{other-command}.
1914
1915On the other hand, if @var{command} is remapped to another command,
1916this function still returns the original bindings of @var{command},
1917even though those keys would actually invoke the other command. To
1918determine the remapping status of @var{command}, use the function
1919@code{command-remapping} (@pxref{Remapping Commands}).
1913 1920
1914@smallexample 1921@smallexample
1915@group 1922@group