diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2014-01-21 06:28:57 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2014-01-21 06:28:57 +0400 |
commit | 5004c3bfbb0e3bbaa7d91658eee04d2d4daef663 (patch) | |
tree | 9a7b3d8971ee53751404a327b2387429bef6967a /src/intervals.h | |
parent | 87503791212088cdb1d8d5cd916df9d2a8be1999 (diff) | |
download | emacs-5004c3bfbb0e3bbaa7d91658eee04d2d4daef663.tar.gz emacs-5004c3bfbb0e3bbaa7d91658eee04d2d4daef663.tar.bz2 emacs-5004c3bfbb0e3bbaa7d91658eee04d2d4daef663.zip |
* 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.h')
-rw-r--r-- | src/intervals.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intervals.h b/src/intervals.h index 45c2e5f5e54..e901f99747d 100644 --- a/src/intervals.h +++ b/src/intervals.h @@ -134,6 +134,14 @@ struct interval 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) { i->up_obj = false; |