Mercurial > emacs
changeset 8158:a6fa25ffa764
(auto-save-mode): If autosave is off because buffer has
shrunk, then toggling should turn it on.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 06 Jul 1994 21:41:47 +0000 |
parents | 14766204c0fe |
children | 513f25ffd93d |
files | lisp/files.el |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Wed Jul 06 21:34:31 1994 +0000 +++ b/lisp/files.el Wed Jul 06 21:41:47 1994 +0000 @@ -1949,7 +1949,10 @@ (interactive "P") (setq buffer-auto-save-file-name (and (if (null arg) - (not buffer-auto-save-file-name) + (or (not buffer-auto-save-file-name) + ;; If autosave is off because buffer has shrunk, + ;; then toggling should turn it on. + (< buffer-saved-size 0)) (or (eq arg t) (listp arg) (and (integerp arg) (> arg 0)))) (if (and buffer-file-name auto-save-visited-file-name (not buffer-read-only))