(Ffind_composition_internal): Accept ZV

and a string's end position as POS.
This commit is contained in:
Gerd Moellmann 2001-06-19 11:30:53 +00:00
parent 04d0b66282
commit fa9090b8f4
2 changed files with 7 additions and 2 deletions

View 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

View 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);
}