Mercurial > emacs
diff src/buffer.c @ 103917:aa5e8ff5a9c4
* fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
(Fset_buffer_auto_saved): Handle save_length = -2.
Comment changes in other files.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Thu, 16 Jul 2009 01:45:08 +0000 |
| parents | a58ef8dce7bd |
| children | 52ff955e0cc5 |
line wrap: on
line diff
--- a/src/buffer.c Thu Jul 16 01:24:00 2009 +0000 +++ b/src/buffer.c Thu Jul 16 01:45:08 2009 +0000 @@ -5853,7 +5853,12 @@ 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,
