Commit 1e792e4d authored by Paul Eggert's avatar Paul Eggert
Browse files

* textprop.c (set_text_properties_1): Change while to do-while,

since the condition is always true at first.
parent aa86731f
2011-04-04 Paul Eggert <eggert@cs.ucla.edu>
* textprop.c (set_text_properties_1): Change while to do-while,
since the condition is always true at first.
* intervals.c (graft_intervals_into_buffer): Mark var as used.
(interval_deletion_adjustment): Return unsigned value.
All uses changed.
......@@ -1379,8 +1379,8 @@ set_text_properties_1 (Lisp_Object start, Lisp_Object end, Lisp_Object propertie
i = next_interval (i);
}
/* We are starting at the beginning of an interval, I */
while (len > 0)
/* We are starting at the beginning of an interval I. LEN is positive. */
do
{
if (i == 0)
abort ();
......@@ -1412,6 +1412,7 @@ set_text_properties_1 (Lisp_Object start, Lisp_Object end, Lisp_Object propertie
i = next_interval (i);
}
while (len > 0);
}
DEFUN ("remove-text-properties", Fremove_text_properties,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment