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
89095962
Commit
89095962
authored
Aug 14, 1995
by
Richard M. Stallman
Browse files
(basic-save-buffer-1): Pass new arg to write-region.
parent
575985b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lisp/files.el
lisp/files.el
+3
-2
No files found.
lisp/files.el
View file @
89095962
...
...
@@ -1794,7 +1794,8 @@ the last real save, but optional arg FORCE non-nil means delete anyway."
(
unwind-protect
(
progn
(
clear-visited-file-modtime
)
(
write-region
(
point-min
)
(
point-max
)
tempname
nil
realname
)
tempname
nil
realname
buffer-file-truename
)
(
setq
succeed
t
))
;; If writing the temp file fails,
;; delete the temp file.
...
...
@@ -1818,7 +1819,7 @@ the last real save, but optional arg FORCE non-nil means delete anyway."
(
setq
setmodes
(
file-modes
buffer-file-name
))
(
set-file-modes
buffer-file-name
511
)))
(
write-region
(
point-min
)
(
point-max
)
buffer-file-name
nil
t
)))
buffer-file-name
nil
t
buffer-file-truename
)))
setmodes
))
(
defun
save-some-buffers
(
&optional
arg
exiting
)
...
...
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