diff options
| author | Dmitry Antipov | 2014-01-21 06:28:57 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 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.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 | |||
| 134 | or pointer slots of struct interval. */ | 134 | or pointer slots of struct interval. */ |
| 135 | 135 | ||
| 136 | INLINE void | 136 | INLINE void |
| 137 | set_interval_object (INTERVAL i, Lisp_Object obj) | ||
| 138 | { | ||
| 139 | eassert (BUFFERP (obj) || STRINGP (obj)); | ||
| 140 | i->up_obj = 1; | ||
| 141 | i->up.obj = obj; | ||
| 142 | } | ||
| 143 | |||
| 144 | INLINE void | ||
| 137 | set_interval_parent (INTERVAL i, INTERVAL parent) | 145 | set_interval_parent (INTERVAL i, INTERVAL parent) |
| 138 | { | 146 | { |
| 139 | i->up_obj = false; | 147 | i->up_obj = false; |