]> code.delx.au - gnu-emacs/blobdiff - src/intervals.h
* buffer.c (Fkill_buffer): When killing an indirect buffer,
[gnu-emacs] / src / intervals.h
index 45c2e5f5e5435b54c7e2aa38907f876944a6a0f9..e901f99747db0b111bfa5cb70ce589edde9bf3fc 100644 (file)
@@ -133,6 +133,14 @@ struct interval
 /* Use these functions to set Lisp_Object
    or pointer slots of struct interval.  */
 
+INLINE void
+set_interval_object (INTERVAL i, Lisp_Object obj)
+{
+  eassert (BUFFERP (obj) || STRINGP (obj));
+  i->up_obj = 1;
+  i->up.obj = obj;
+}
+
 INLINE void
 set_interval_parent (INTERVAL i, INTERVAL parent)
 {