diff src/doc.c @ 57441:4c881805ff35

(Fsubstitute_command_keys): Ignore remappings unless there are no ordinary bindings.
author Kim F. Storm <storm@cua.dk>
date Mon, 11 Oct 2004 22:36:35 +0000
parents efd6af30bde2
children 0a4c356f307b ff0e824afa37
line wrap: on
line diff
--- a/src/doc.c	Mon Oct 11 22:36:16 2004 +0000
+++ b/src/doc.c	Mon Oct 11 22:36:35 2004 +0000
@@ -776,9 +776,13 @@
 	  idx = strp - SDATA (string);
 	  tem = Fintern (make_string (start, length_byte), Qnil);
 
+	  /* Ignore remappings unless there are no ordinary bindings. */
+ 	  tem = Fwhere_is_internal (tem, keymap, Qt, Qnil, Qt);
+ 	  if (NILP (tem))
+	    tem = Fwhere_is_internal (tem, keymap, Qt, Qnil, Qnil);
+
 	  /* Note the Fwhere_is_internal can GC, so we have to take
 	     relocation of string contents into account.  */
-	  tem = Fwhere_is_internal (tem, keymap, Qt, Qnil, Qnil);
 	  strp = SDATA (string) + idx;
 	  start = SDATA (string) + start_idx;