Mercurial > emacs
changeset 75293:e11e583145aa
(read_key_sequence): Extract local map only if the
given position is in an accessible buffer region.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 20 Jan 2007 02:11:03 +0000 |
parents | 4d18fa80f001 |
children | b33841ac0beb |
files | src/keyboard.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);