Commit 602ae44c authored by Chong Yidong's avatar Chong Yidong

(read_key_sequence): Extract local map only if the

given position is in an accessible buffer region.
parent 25170427
......@@ -9286,7 +9286,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
pos = POSN_BUFFER_POSN (start);
if (INTEGERP (pos)
&& XINT (pos) >= BEG && XINT (pos) <= Z)
&& XINT (pos) >= BEGV
&& XINT (pos) <= ZV)
map_here = get_local_map (XINT (pos),
current_buffer, Qlocal_map);
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