bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43723: 27.1; Errors in file-extended-attributes prevent from saving


From: Eli Zaretskii
Subject: bug#43723: 27.1; Errors in file-extended-attributes prevent from saving buffer
Date: Tue, 07 Jun 2022 16:07:15 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: 43723@debbugs.gnu.org
> Date: Tue, 07 Jun 2022 13:52:27 +0200
> 
> So it's this bit that bugs out in obscure situations?
> 
>           ;; Since we have created an entirely new file,
>           ;; make sure it gets the right permission bits set.
>           (setq setmodes (or setmodes
>                              (list (or (file-modes buffer-file-name)
>                                        (logand ?\666 (default-file-modes)))
>                                    (file-extended-attributes buffer-file-name)
>                                    buffer-file-name)))
> 
> Since this is such an unlikely thing to error out, perhaps just doing a
> `with-demoted-errors' here is sufficient?

Probably.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]