aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index efe0252453a..a5f8a6a4070 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -82,6 +82,9 @@ Boston, MA 02110-1301, USA. */
82/* Modification count. */ 82/* Modification count. */
83#define MODIFF (current_buffer->text->modiff) 83#define MODIFF (current_buffer->text->modiff)
84 84
85/* Character modification count. */
86#define CHARS_MODIFF (current_buffer->text->chars_modiff)
87
85/* Overlay modification count. */ 88/* Overlay modification count. */
86#define OVERLAY_MODIFF (current_buffer->text->overlay_modiff) 89#define OVERLAY_MODIFF (current_buffer->text->overlay_modiff)
87 90
@@ -147,6 +150,9 @@ Boston, MA 02110-1301, USA. */
147/* Modification count. */ 150/* Modification count. */
148#define BUF_MODIFF(buf) ((buf)->text->modiff) 151#define BUF_MODIFF(buf) ((buf)->text->modiff)
149 152
153/* Character modification count. */
154#define BUF_CHARS_MODIFF(buf) ((buf)->text->chars_modiff)
155
150/* Modification count as of last visit or save. */ 156/* Modification count as of last visit or save. */
151#define BUF_SAVE_MODIFF(buf) ((buf)->text->save_modiff) 157#define BUF_SAVE_MODIFF(buf) ((buf)->text->save_modiff)
152 158
@@ -406,6 +412,10 @@ struct buffer_text
406 for this buffer. It is incremented for 412 for this buffer. It is incremented for
407 each such event, and never otherwise 413 each such event, and never otherwise
408 changed. */ 414 changed. */
415 int chars_modiff; /* This is modified with character change
416 events for this buffer. It is set to
417 modiff for each such event, and never
418 otherwise changed. */
409 int save_modiff; /* Previous value of modiff, as of last 419 int save_modiff; /* Previous value of modiff, as of last
410 time buffer visited or saved a file. */ 420 time buffer visited or saved a file. */
411 421