# HG changeset patch # User Chong Yidong # Date 1169259063 0 # Node ID e11e583145aa36beab74d37519191ee9532a8e6f # Parent 4d18fa80f00183cb10aceab02b2946b78859e1d1 (read_key_sequence): Extract local map only if the given position is in an accessible buffer region. diff -r 4d18fa80f001 -r e11e583145aa src/keyboard.c --- a/src/keyboard.c Sat Jan 20 02:10:19 2007 +0000 +++ b/src/keyboard.c Sat Jan 20 02:11:03 2007 +0000 @@ -9286,7 +9286,8 @@ { 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);