mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-27 07:30:59 -08:00
(Fset_text_properties):
Return early if buffer has no intervals and PROPS is nil.
This commit is contained in:
parent
09d1d7e297
commit
facc570e2b
1 changed files with 11 additions and 2 deletions
|
|
@ -887,9 +887,18 @@ is the string or buffer containing the text.")
|
|||
if (NILP (object))
|
||||
XSET (object, Lisp_Buffer, current_buffer);
|
||||
|
||||
i = validate_interval_range (object, &start, &end, hard);
|
||||
i = validate_interval_range (object, &start, &end, soft);
|
||||
if (NULL_INTERVAL_P (i))
|
||||
return Qnil;
|
||||
{
|
||||
/* If buffer has no props, and we want none, return now. */
|
||||
if (NILP (props))
|
||||
return Qnil;
|
||||
|
||||
i = validate_interval_range (object, &start, &end, hard);
|
||||
/* This can return if start == end. */
|
||||
if (NULL_INTERVAL_P (i))
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
s = XINT (start);
|
||||
len = XINT (end) - s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue