summaryrefslogtreecommitdiff
path: root/src/intervals.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-09-04 15:40:46 +0000
committerRichard M. Stallman <rms@gnu.org>1996-09-04 15:40:46 +0000
commit4a9f44cd824ab47bfff7fb31b39ad0bca181f898 (patch)
tree2650e551400c6dc06b19011c23aa3387b80479ca /src/intervals.c
parentd2609065f8d2c45154f9fd061cb9fa2338397ede (diff)
downloademacs-4a9f44cd824ab47bfff7fb31b39ad0bca181f898.tar.gz
(get_local_map): Call indirect-function.
Diffstat (limited to 'src/intervals.c')
-rw-r--r--src/intervals.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intervals.c b/src/intervals.c
index 00c7395cbb0..0cc28ac2751 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -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;