Commit d35f78c9 authored by Juri Linkov's avatar Juri Linkov
Browse files

(shadow_lookup): If Flookup_key returns a number,

call it again with a sub-key-sequence, and if its return value
is non-nil (sub-key is bound), return nil.
parent 8b363e6f
......@@ -2377,7 +2377,13 @@ shadow_lookup (shadow, key, flag)
for (tail = shadow; CONSP (tail); tail = XCDR (tail))
{
value = Flookup_key (XCAR (tail), key, flag);
if (!NILP (value) && !NATNUMP (value))
if (NATNUMP (value))
{
value = Flookup_key (XCAR (tail), Fsubstring (key, 0, value), flag);
if (!NILP (value))
return Qnil;
}
else if (!NILP (value))
return value;
}
return Qnil;
......
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