From: Lars Ingebrigtsen Date: Tue, 25 Aug 2020 11:14:00 +0000 (+0200) Subject: Make shadowing warning in describe_map less confusing X-Git-Tag: emacs-28.0.90~6418 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=764bad713e1040cc714b602678009f30c4806fe8;p=emacs.git Make shadowing warning in describe_map less confusing * src/keymap.c (describe_map): A binding may be shadowed by something else than a mode (bug#14086) (just a `define-key' works), so don't say that it's a mode that shadows it. --- diff --git a/src/keymap.c b/src/keymap.c index d98b27b7a1b..0608bdddeea 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -3277,7 +3277,7 @@ describe_map (Lisp_Object map, Lisp_Object prefix, ptrdiff_t pt = max (PT - 1, BEG); SET_PT (pt); - insert_string ("\n (that binding is currently shadowed by another mode)"); + insert_string ("\n (this binding is currently shadowed)"); pt = min (PT + 1, Z); SET_PT (pt); }