Commit 2a5af1cf authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fset_keymap_parent): Return early if KEYMAP already has the proper parent.

parent b64d7442
......@@ -307,6 +307,11 @@ PARENT should be nil or another keymap.")
If we came to the end, add the parent in PREV. */
if (! CONSP (list) || EQ (Qkeymap, XCONS (list)->car))
/* If we already have the right parent, return now
so that we avoid the loops below. */
if (EQ (XCONS (prev)->cdr, parent))
return parent;
XCONS (prev)->cdr = parent;
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