Mercurial > emacs
comparison src/keyboard.c @ 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 | 86181f7117aa |
children | 3d45362f1d38 |
comparison
equal
deleted
inserted
replaced
75292:4d18fa80f001 | 75293:e11e583145aa |
---|---|
9284 | 9284 |
9285 if (CONSP (start) && POSN_INBUFFER_P (start)) | 9285 if (CONSP (start) && POSN_INBUFFER_P (start)) |
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); |
9293 if (!EQ (map_here, orig_local_map)) | 9294 if (!EQ (map_here, orig_local_map)) |
9294 { | 9295 { |