summaryrefslogtreecommitdiff
path: root/src/intervals.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2014-01-21 06:28:57 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2014-01-21 06:28:57 +0400
commit5004c3bfbb0e3bbaa7d91658eee04d2d4daef663 (patch)
tree9a7b3d8971ee53751404a327b2387429bef6967a /src/intervals.c
parent87503791212088cdb1d8d5cd916df9d2a8be1999 (diff)
downloademacs-5004c3bfbb0e3bbaa7d91658eee04d2d4daef663.tar.gz
* buffer.c (Fkill_buffer): When killing an indirect buffer,
re-attach intervals to its base buffer (Bug#16502). * intervals.c (set_interval_object): Move from here... * intervals.h (set_interval_object): ... to here. Fix comments.
Diffstat (limited to 'src/intervals.c')
-rw-r--r--src/intervals.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/intervals.c b/src/intervals.c
index 13ff9a9e3db..703c0cefbd5 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -60,16 +60,7 @@ static INTERVAL reproduce_tree (INTERVAL, INTERVAL);
/* Utility functions for intervals. */
-/* Use these functions to set Lisp_Object
- or pointer slots of struct interval. */
-
-static void
-set_interval_object (INTERVAL i, Lisp_Object obj)
-{
- eassert (BUFFERP (obj) || STRINGP (obj));
- i->up_obj = 1;
- i->up.obj = obj;
-}
+/* Use these functions to set pointer slots of struct interval. */
static void
set_interval_left (INTERVAL i, INTERVAL left)