diff 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
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);