emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/intervals.c


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/src/intervals.c
Date: Sun, 14 May 2006 21:53:45 +0000

Index: emacs/src/intervals.c
diff -u emacs/src/intervals.c:1.133 emacs/src/intervals.c:1.134
--- emacs/src/intervals.c:1.133 Fri May 12 17:39:39 2006
+++ emacs/src/intervals.c       Sun May 14 21:53:45 2006
@@ -2341,7 +2341,9 @@
 /* Return the proper local keymap TYPE for position POSITION in
    BUFFER; TYPE should be one of `keymap' or `local-map'.  Use the map
    specified by the PROP property, if any.  Otherwise, if TYPE is
-   `local-map' use BUFFER's local map.  */
+   `local-map' use BUFFER's local map.
+
+   POSITION must be in the accessible part of BUFFER.  */
 
 Lisp_Object
 get_local_map (position, buffer, type)
@@ -2353,7 +2355,7 @@
   int old_begv, old_zv, old_begv_byte, old_zv_byte;
 
   /* Perhaps we should just change `position' to the limit.  */
-  if (position > BUF_Z (buffer) || position < BUF_BEG (buffer))
+  if (position > BUF_ZV (buffer) || position < BUF_BEGV (buffer))
     abort ();
 
   /* Ignore narrowing, so that a local map continues to be valid even if




reply via email to

[Prev in Thread] Current Thread [Next in Thread]