diff options
| author | Richard M. Stallman <rms@gnu.org> | 2009-07-16 01:45:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 2009-07-16 01:45:08 +0000 |
| commit | 4be941e3d033e95db26ce46c14e44bdcf193e638 (patch) | |
| tree | 5d738d110e0378ca72018a2ef4150e2145a14645 /src/buffer.c | |
| parent | 4e6b227dbe52c61ca54df5fc0597fb190734210d (diff) | |
| download | emacs-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.c | 7 |
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", ¤t_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", ¤t_buffer->selective_display, Qnil, |
