Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b41b0976
Commit
b41b0976
authored
Jul 21, 2009
by
Richard M. Stallman
Browse files
* files.el (auto-save-mode): Handle buffer-save-size = -2
for toggling mode.
parent
ece435a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/files.el
lisp/files.el
+1
-1
No files found.
lisp/ChangeLog
View file @
b41b0976
2009-07-21 Richard Stallman <rms@gnu.org>
* files.el (auto-save-mode): Handle buffer-save-size = -2
for toggling mode.
2009-07-21 Glenn Morris <rgm@gnu.org>
* textmodes/ispell.el (ispell-looking-back): Update declaration.
...
...
lisp/files.el
View file @
b41b0976
...
...
@@ -5005,7 +5005,7 @@ With prefix argument ARG, turn auto-saving on if positive, else off."
(or (not buffer-auto-save-file-name)
;; If auto-save is off because buffer has shrunk,
;; then toggling should turn it on.
(
<
buffer-saved-size
0
))
(
=
buffer-saved-size
-1
))
(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))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment