Mercurial > emacs
changeset 10962:7f0bc7bcf1f3
(Fnext_property_change): Handle LIMIT = t.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 11 Mar 1995 22:03:27 +0000 |
parents | 88cba63f2a9b |
children | 7fd3688d36a3 |
files | src/textprop.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/textprop.c Sat Mar 11 20:32:48 1995 +0000 +++ b/src/textprop.c Sat Mar 11 22:03:27 1995 +0000 @@ -606,7 +606,7 @@ if (NILP (object)) XSETBUFFER (object, current_buffer); - if (!NILP (limit)) + if (! NILP (limit) && ! EQ (limit, Qt)) CHECK_NUMBER_COERCE_MARKER (limit, 0); i = validate_interval_range (object, &pos, &pos, soft); @@ -614,6 +614,14 @@ return limit; next = next_interval (i); + /* If LIMIT is t, return start of next interval--don't + bother checking further intervals. */ + if (EQ (limit, Qt)) + { + XSETFASTINT (pos, next->position - (STRINGP (object))); + return pos; + } + while (! NULL_INTERVAL_P (next) && intervals_equal (i, next) && (NILP (limit) || next->position < XFASTINT (limit))) next = next_interval (next);