collect_interval (INTERVAL interval, void *arg)
{
Lisp_Object *collector = arg;
- *collector =
- nconc2 (*collector,
- list1(list3 (make_fixnum (interval->position),
- make_fixnum (interval->position + LENGTH (interval)),
- interval->plist)));
+ *collector = Fcons (list3 (make_fixnum (interval->position),
+ make_fixnum (interval->position
+ + LENGTH (interval)),
+ interval->plist),
+ *collector);
}
in OBJECT. */)
(register Lisp_Object object)
{
- Lisp_Object collector = Qnil;
INTERVAL intervals;
if (STRINGP (object))
if (! intervals)
return Qnil;
+ Lisp_Object collector = Qnil;
traverse_intervals (intervals, 0, collect_interval, &collector);
- return collector;
+ return Fnreverse (collector);
}
DEFUN ("line-number-at-pos", Fline_number_at_pos,