From: Chong Yidong Date: Sat, 20 Jan 2007 02:11:03 +0000 (+0000) Subject: (read_key_sequence): Extract local map only if the X-Git-Tag: emacs-pretest-22.0.93~83 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=602ae44c189b248e2d9a4b82b9efce33a6d04435;p=emacs.git (read_key_sequence): Extract local map only if the given position is in an accessible buffer region. --- diff --git a/src/keyboard.c b/src/keyboard.c index f8f751161c4..8b53a6ebbda 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -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);