comparison src/buffer.h @ 16190:45a956359a95

(struct buffer): New field overlay_modiff. (MODIFF, BUF_OVERLAY_MODIFF): New macros.
author Richard M. Stallman <rms@gnu.org>
date Sun, 15 Sep 1996 01:48:31 +0000
parents 2f421cfff6cc
children 7397d7d0ed17
comparison
equal deleted inserted replaced
16189:b41f7cd8f5b3 16190:45a956359a95
58 #define NARROWED ((BEGV != BEG) || (ZV != Z)) 58 #define NARROWED ((BEGV != BEG) || (ZV != Z))
59 59
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
66 /* Address of beginning of buffer. */ 69 /* Address of beginning of buffer. */
67 #define BEG_ADDR (current_buffer->text->beg) 70 #define BEG_ADDR (current_buffer->text->beg)
112 /* Modification count. */ 115 /* Modification count. */
113 #define BUF_MODIFF(buf) ((buf)->text->modiff) 116 #define BUF_MODIFF(buf) ((buf)->text->modiff)
114 117
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)
120
121 /* Overlay modification count. */
122 #define BUF_OVERLAY_MODIFF(buf) ((buf)->text->overlay_modiff)
117 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
121 /* Marker chain of buffer. */ 127 /* Marker chain of buffer. */
161 for this buffer. It is incremented for 167 for this buffer. It is incremented for
162 each such event, and never otherwise 168 each such event, and never otherwise
163 changed. */ 169 changed. */
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. */
172
173 int overlay_modiff; /* Counts modifications to overlays. */
166 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
170 /* The markers that refer to this buffer. 178 /* The markers that refer to this buffer.