Commit 9fc722de authored by Karl Heuer's avatar Karl Heuer
Browse files

(Fwhere_is_internal): Skip duplicates.

parent 26ae6b61
......@@ -1694,8 +1694,10 @@ indirect definition itself.")
/* It is a true unshadowed match. Record it. */
found = Fcons (sequence, found);
/* It is a true unshadowed match. Record it, unless it's already
been seen (as could happen when inheriting keymaps). */
if (NILP (Fmember (sequence, found)))
found = Fcons (sequence, found);
/* If firstonly is Qnon_ascii, then we can return the first
binding we find. If firstonly is not Qnon_ascii but not
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment