Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
44214c1b
Commit
44214c1b
authored
Oct 21, 1995
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fnext_single_property_change): Rearrange handling of
limit = t; don't return t.
parent
637df16f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/textprop.c
src/textprop.c
+10
-3
No files found.
src/textprop.c
View file @
44214c1b
...
...
@@ -624,14 +624,16 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT.")
CHECK_NUMBER_COERCE_MARKER
(
limit
,
0
);
i
=
validate_interval_range
(
object
,
&
pos
,
&
pos
,
soft
);
if
(
NULL_INTERVAL_P
(
i
))
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
))
{
if
(
NULL_INTERVAL_P
(
i
))
next
=
i
;
else
next
=
next_interval
(
i
);
if
(
NULL_INTERVAL_P
(
next
))
XSETFASTINT
(
pos
,
(
STRINGP
(
object
)
?
XSTRING
(
object
)
->
size
...
...
@@ -641,6 +643,11 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT.")
return
pos
;
}
if
(
NULL_INTERVAL_P
(
i
))
return
limit
;
next
=
next_interval
(
i
);
while
(
!
NULL_INTERVAL_P
(
next
)
&&
intervals_equal
(
i
,
next
)
&&
(
NILP
(
limit
)
||
next
->
position
<
XFASTINT
(
limit
)))
next
=
next_interval
(
next
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment