From 4a9f44cd824ab47bfff7fb31b39ad0bca181f898 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 4 Sep 1996 15:40:46 +0000 Subject: [PATCH] (get_local_map): Call indirect-function. --- src/intervals.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2