diff options
author | Stefan Kangas <stefan@marxist.se> | 2020-11-13 15:28:34 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2020-11-22 02:45:03 +0100 |
commit | 84dd5c9bea9112daa339e4c1b8e4e556988f3195 (patch) | |
tree | 8f51426f1b6a81141e38b8375bbbf7a4b5e7f52c /src/keymap.c | |
parent | a6490343366f2b2331a91dcb693effb3a9dd78f5 (diff) | |
download | emacs-84dd5c9bea9112daa339e4c1b8e4e556988f3195.tar.gz emacs-84dd5c9bea9112daa339e4c1b8e4e556988f3195.tar.bz2 emacs-84dd5c9bea9112daa339e4c1b8e4e556988f3195.zip |
Don't shadow bindings by the same command
* src/keymap.c (describe_vector): Do not say binding is shadowed if
the other key binding points to the same command. (Bug#9293)
* test/src/keymap-tests.el
(help--describe-vector/bug-9293-same-command-does-not-shadow): New
test.
Diffstat (limited to 'src/keymap.c')
-rw-r--r-- | src/keymap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c index 749f4b6b91c..aaba2ac838a 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -3130,7 +3130,7 @@ describe_vector (Lisp_Object vector, Lisp_Object prefix, Lisp_Object args, { shadowed_by = shadow_lookup (shadow, kludge, Qt, 0); - if (!NILP (shadowed_by)) + if (!NILP (shadowed_by) && !EQ (shadowed_by, definition)) { if (mention_shadow) this_shadowed = 1; |