mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Fix last commit.
lisp/files.el (basic-save-buffer): If set-file-extended-attributes fails, fall back on set-file-modes. Fixes: debbugs:13298
This commit is contained in:
parent
ccad023bc3
commit
7e56b10316
2 changed files with 6 additions and 3 deletions
|
|
@ -4621,9 +4621,11 @@ Before and after saving the buffer, this function runs
|
|||
(if setmodes
|
||||
(condition-case ()
|
||||
(progn
|
||||
(set-file-modes buffer-file-name (car setmodes))
|
||||
(set-file-extended-attributes buffer-file-name
|
||||
(nth 1 setmodes)))
|
||||
(unless
|
||||
(with-demoted-errors
|
||||
(set-file-modes buffer-file-name (car setmodes)))
|
||||
(set-file-extended-attributes buffer-file-name
|
||||
(nth 1 setmodes))))
|
||||
(error nil))))
|
||||
;; If the auto-save file was recent before this command,
|
||||
;; delete it now.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue