aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2009-07-16 19:37:08 +0000
committerRichard M. Stallman2009-07-16 19:37:08 +0000
commit137987ab43d15cfafc0e11639d80f700408d5bea (patch)
treeea05163cd68ed870506f63056913399827e202c1
parentbede3e9f87bd10b0fb0f3f516353667c63082dd4 (diff)
downloademacs-137987ab43d15cfafc0e11639d80f700408d5bea.tar.gz
emacs-137987ab43d15cfafc0e11639d80f700408d5bea.zip
* buffers.texi (Swapping Text): Recommend setting
write-region-annotate-functions and buffer-saved-size. * backups.texi (Auto-Saving): Document buffer-saved-size = -2.
-rw-r--r--doc/lispref/ChangeLog7
-rw-r--r--doc/lispref/backups.texi4
-rw-r--r--doc/lispref/buffers.texi7
3 files changed, 18 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index f0e57f6d529..7f6bca51300 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,10 @@
12009-07-16 Richard Stallman <rms@gnu.org>
2
3 * buffers.texi (Swapping Text): Recommend setting
4 write-region-annotate-functions and buffer-saved-size.
5
6 * backups.texi (Auto-Saving): Document buffer-saved-size = -2.
7
12009-07-15 Glenn Morris <rgm@gnu.org> 82009-07-15 Glenn Morris <rgm@gnu.org>
2 9
3 * edebug.texi: Minor re-phrasings throughout. 10 * edebug.texi: Minor re-phrasings throughout.
diff --git a/doc/lispref/backups.texi b/doc/lispref/backups.texi
index 6de8594607f..d43bce28d7a 100644
--- a/doc/lispref/backups.texi
+++ b/doc/lispref/backups.texi
@@ -632,6 +632,10 @@ this buffer due to a substantial decrease in size. Explicitly saving
632the buffer stores a positive value in this variable, thus reenabling 632the buffer stores a positive value in this variable, thus reenabling
633auto-saving. Turning auto-save mode off or on also updates this 633auto-saving. Turning auto-save mode off or on also updates this
634variable, so that the substantial decrease in size is forgotten. 634variable, so that the substantial decrease in size is forgotten.
635
636If it is @minus{}2, that means this buffer should disregard changes in
637buffer size; in particular, it should not shut off auto-saving
638temporarily due to changes in buffer size.
635@end defvar 639@end defvar
636 640
637@defvar auto-save-list-file-name 641@defvar auto-save-list-file-name
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi
index 5d03865e8e2..97242d8d5de 100644
--- a/doc/lispref/buffers.texi
+++ b/doc/lispref/buffers.texi
@@ -1192,6 +1192,13 @@ overlays, the text properties, the undo list, the value of the
1192enable-multibyte-characters}), etc. 1192enable-multibyte-characters}), etc.
1193@end defun 1193@end defun
1194 1194
1195 If you use @code{buffer-swap-text} on a file-visiting buffer, you
1196should set up a hook to save the buffer's original text rather than
1197what it was swapped with. @code{write-region-annotate-functions}
1198works for this purpose. You should probably set
1199@code{buffer-saved-size} to @minus{}2 in the buffer, so that changes
1200in the text it is swapped with will not interfere with auto-saving.
1201
1195@node Buffer Gap 1202@node Buffer Gap
1196@section The Buffer Gap 1203@section The Buffer Gap
1197 1204