# HG changeset patch # User Karl Heuer # Date 764564547 0 # Node ID cedc6c52a8120b6039e65dc96ee424123da062d5 # Parent d9d9ab5951ddffd797362462e978e25c3d442f3d (Fwhere_is_internal): Skip duplicates. diff -r d9d9ab5951dd -r cedc6c52a812 src/keymap.c --- a/src/keymap.c Fri Mar 25 01:34:24 1994 +0000 +++ b/src/keymap.c Fri Mar 25 03:02:27 1994 +0000 @@ -1694,8 +1694,10 @@ continue; } - /* 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