changeset 16124:f38128a8bb2b

(get_local_map): Call indirect-function.
author Richard M. Stallman <rms@gnu.org>
date Wed, 04 Sep 1996 15:40:46 +0000
parents ec5f48fe0320
children 2e0a45264368
files src/intervals.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/intervals.c	Wed Sep 04 15:38:37 1996 +0000
+++ b/src/intervals.c	Wed Sep 04 15:40:46 1996 +0000
@@ -1789,6 +1789,9 @@
   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;