summaryrefslogtreecommitdiff
path: root/src/buffer.c
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.c
parent4e6b227dbe52c61ca54df5fc0597fb190734210d (diff)
downloademacs-4be941e3d033e95db26ce46c14e44bdcf193e638.tar.gz
* 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.c')
-rw-r--r--src/buffer.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index f06a6c06a92..f811f162ef2 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5853,7 +5853,12 @@ Backing up is done before the first time the file is saved. */);
DEFVAR_PER_BUFFER ("buffer-saved-size", &current_buffer->save_length,
make_number (Lisp_Int),
doc: /* Length of current buffer when last read in, saved or auto-saved.
-0 initially. */);
+0 initially.
+-1 means auto-saving turned off until next real save.
+
+If you set this to -2, that means don't turn off auto-saving in this buffer
+if its text size shrinks. If you use `buffer-swap-text' on a buffer,
+you probably should set this to -2 in that buffer. */);
DEFVAR_PER_BUFFER ("selective-display", &current_buffer->selective_display,
Qnil,