(read_key_sequence): Extract local map only if the

given position is in an accessible buffer region.
This commit is contained in:
Chong Yidong 2007-01-20 02:11:03 +00:00
parent 25170427ab
commit 602ae44c18

View file

@ -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);