Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
74b9c2af
Commit
74b9c2af
authored
Jul 06, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(auto-save-mode): If autosave is off because buffer has
shrunk, then toggling should turn it on.
parent
de7d5e1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lisp/files.el
lisp/files.el
+4
-1
No files found.
lisp/files.el
View file @
74b9c2af
...
...
@@ -1949,7 +1949,10 @@ With prefix argument ARG, turn auto-saving on if positive, else off."
(
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
))
...
...
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