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
0b7f1ef2
Commit
0b7f1ef2
authored
Apr 05, 1994
by
Richard M. Stallman
Browse files
(auto-save-mode): Don't let buffer-saved-size stay negative.
parent
2788b7c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lisp/files.el
lisp/files.el
+4
-0
No files found.
lisp/files.el
View file @
0b7f1ef2
...
...
@@ -1884,6 +1884,10 @@ With prefix argument ARG, turn auto-saving on if positive, else off."
(
not
buffer-read-only
))
buffer-file-name
(
make-auto-save-file-name
))))
;; If -1 was stored here, to temporarily turn off saving,
;; turn it back on.
(
and
(
<
buffer-saved-size
0
)
(
setq
buffer-saved-size
0
))
(
if
(
interactive-p
)
(
message
"Auto-save %s (in this buffer)"
(
if
buffer-auto-save-file-name
"on"
"off"
)))
...
...
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