aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-09-15 01:48:31 +0000
committerRichard M. Stallman1996-09-15 01:48:31 +0000
commit2e50b9cc7781731bec2c7edb49a06c2d21ada0e2 (patch)
tree1ca79d1d887156190f42ae5f98892efd22139009 /src
parent39110bdb9fd3e600a65e15c06d6a90477bc495ad (diff)
downloademacs-2e50b9cc7781731bec2c7edb49a06c2d21ada0e2.tar.gz
emacs-2e50b9cc7781731bec2c7edb49a06c2d21ada0e2.zip
(struct buffer): New field overlay_modiff.
(MODIFF, BUF_OVERLAY_MODIFF): New macros.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index cbacfb97116..4a13cb0d18e 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -60,6 +60,9 @@ Boston, MA 02111-1307, USA. */
60/* Modification count. */ 60/* Modification count. */
61#define MODIFF (current_buffer->text->modiff) 61#define MODIFF (current_buffer->text->modiff)
62 62
63/* Overlay modification count. */
64#define OVERLAY_MODIFF(buf) (current_buffer->text->overlay_modiff)
65
63/* Modification count as of last visit or save. */ 66/* Modification count as of last visit or save. */
64#define SAVE_MODIFF (current_buffer->text->save_modiff) 67#define SAVE_MODIFF (current_buffer->text->save_modiff)
65 68
@@ -115,6 +118,9 @@ Boston, MA 02111-1307, USA. */
115/* Modification count as of last visit or save. */ 118/* Modification count as of last visit or save. */
116#define BUF_SAVE_MODIFF(buf) ((buf)->text->save_modiff) 119#define BUF_SAVE_MODIFF(buf) ((buf)->text->save_modiff)
117 120
121/* Overlay modification count. */
122#define BUF_OVERLAY_MODIFF(buf) ((buf)->text->overlay_modiff)
123
118/* Interval tree of buffer. */ 124/* Interval tree of buffer. */
119#define BUF_INTERVALS(buf) ((buf)->text->intervals) 125#define BUF_INTERVALS(buf) ((buf)->text->intervals)
120 126
@@ -164,6 +170,8 @@ struct buffer_text
164 int save_modiff; /* Previous value of modiff, as of last 170 int save_modiff; /* Previous value of modiff, as of last
165 time buffer visited or saved a file. */ 171 time buffer visited or saved a file. */
166 172
173 int overlay_modiff; /* Counts modifications to overlays. */
174
167 /* Properties of this buffer's text -- conditionally compiled. */ 175 /* Properties of this buffer's text -- conditionally compiled. */
168 DECLARE_INTERVALS 176 DECLARE_INTERVALS
169 177