]> git.eshelyaron.com Git - emacs.git/commitdiff
(read_key_sequence): Extract local map only if the
authorChong Yidong <cyd@stupidchicken.com>
Sat, 20 Jan 2007 02:11:03 +0000 (02:11 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 20 Jan 2007 02:11:03 +0000 (02:11 +0000)
given position is in an accessible buffer region.

src/keyboard.c

index f8f751161c44e0859db94cf7e10e72e210ae6aee..8b53a6ebbda8abc46a9ddf57e68bfc8eb5dcd181 100644 (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);