]> git.eshelyaron.com Git - emacs.git/commitdiff
(Ffind_composition_internal): Accept ZV
authorGerd Moellmann <gerd@gnu.org>
Tue, 19 Jun 2001 11:30:53 +0000 (11:30 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 19 Jun 2001 11:30:53 +0000 (11:30 +0000)
and a string's end position as POS.

src/ChangeLog
src/composite.c

index cf792aaf215b5131cdff5c9273d08b763e8a5d67..dcaae37ad7e696dc5e7046bd535186fbcc7bcba9 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-19  Gerd Moellmann  <gerd@gnu.org>
+
+       * composite.c (Ffind_composition_internal): Accept ZV
+       and a string's end position as POS.
+
 2001-06-18  Gerd Moellmann  <gerd@gnu.org>
 
        * composite.c (Ffind_composition_internal): Check POS
index 6db705cec4e9c42bd5226b292ee7117a018585e2..c18d8eb749ce4bb1b39e60219acb715e4a2e2153 100644 (file)
@@ -782,12 +782,12 @@ See `find-composition' for more detail.")
   if (!NILP (string))
     {
       CHECK_STRING (string, 2);
-      if (XINT (pos) < 0 || XINT (pos) >= XSTRING (string)->size)
+      if (XINT (pos) < 0 || XINT (pos) > XSTRING (string)->size)
        args_out_of_range (string, pos);
     }
   else
     {
-      if (XINT (pos) < BEGV || XINT (pos) >= ZV)
+      if (XINT (pos) < BEGV || XINT (pos) > ZV)
        args_out_of_range (Fcurrent_buffer (), pos);
     }