(Ffind_composition_internal): Accept ZV
and a string's end position as POS.
This commit is contained in:
parent
04d0b66282
commit
fa9090b8f4
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue