Commit 4a9f44cd authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(get_local_map): Call indirect-function.

parent d2609065
......@@ -1789,6 +1789,9 @@ get_local_map (position, buffer)
BUF_ZV (buffer) = old_zv;
/* Use the local map only if it is valid. */
/* Do allow symbols that are defined as keymaps. */
if (SYMBOLP (prop) && !NILP (prop))
prop = Findirect_function (prop);
if (!NILP (prop)
&& (tem = Fkeymapp (prop), !NILP (tem)))
return prop;
......
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