aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2007-01-20 02:11:03 +0000
committerChong Yidong2007-01-20 02:11:03 +0000
commit602ae44c189b248e2d9a4b82b9efce33a6d04435 (patch)
tree5544d42aa42fb488195b748802d3fec235e81e71 /src
parent25170427abfd30d080beac47ccfc2ee299b7e2bf (diff)
downloademacs-602ae44c189b248e2d9a4b82b9efce33a6d04435.tar.gz
emacs-602ae44c189b248e2d9a4b82b9efce33a6d04435.zip
(read_key_sequence): Extract local map only if the
given position is in an accessible buffer region.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c3
1 files changed, 2 insertions, 1 deletions
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,
9286 { 9286 {
9287 pos = POSN_BUFFER_POSN (start); 9287 pos = POSN_BUFFER_POSN (start);
9288 if (INTEGERP (pos) 9288 if (INTEGERP (pos)
9289 && XINT (pos) >= BEG && XINT (pos) <= Z) 9289 && XINT (pos) >= BEGV
9290 && XINT (pos) <= ZV)
9290 { 9291 {
9291 map_here = get_local_map (XINT (pos), 9292 map_here = get_local_map (XINT (pos),
9292 current_buffer, Qlocal_map); 9293 current_buffer, Qlocal_map);