summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2009-07-16 01:45:08 +0000
committerRichard M. Stallman <rms@gnu.org>2009-07-16 01:45:08 +0000
commit4be941e3d033e95db26ce46c14e44bdcf193e638 (patch)
tree5d738d110e0378ca72018a2ef4150e2145a14645 /src/buffer.h
parent4e6b227dbe52c61ca54df5fc0597fb190734210d (diff)
downloademacs-4be941e3d033e95db26ce46c14e44bdcf193e638.tar.gz
emacs-4be941e3d033e95db26ce46c14e44bdcf193e638.tar.bz2
emacs-4be941e3d033e95db26ce46c14e44bdcf193e638.zip
* fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
(Fset_buffer_auto_saved): Handle save_length = -2. Comment changes in other files.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 1fb322e3ed9..397b97579e6 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -584,6 +584,9 @@ struct buffer
/* This isn't really used by the C code, so could be deleted. */
Lisp_Object backed_up;
/* Length of file when last read or saved.
+ -1 means auto saving turned off because buffer shrank a lot.
+ -2 means don't turn off auto saving if buffer shrinks.
+ (That value is used with buffer-swap-text.)
This is not in the struct buffer_text
because it's not used in indirect buffers at all. */
Lisp_Object save_length;