unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Signaling an error while saving files due to file-extended-attributes
@ 2020-09-29 15:29 Eli Zaretskii
  2020-09-29 16:58 ` Paul Eggert
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2020-09-29 15:29 UTC (permalink / raw)
  To: Paul Eggert; +Cc: emacs-devel

Emacs 26 silently returned nil when file-acl or file-selinux-context
failed for a file.  Emacs 27 signals an error in that case (except
when the error returned by the low-level APIs are one of a small set
of errors that are taken as evidence that extended attributes are not
supported for the file).

This is probably OK for the primitives that access the extended
attributes, but what about their calls during saving a buffer to its
file?  Signaling an error there effectively prevents users from saving
their edits in such cases, which IMO makes little sense.

So how about wrapping the call to file-extended-attributes in
backup-buffer with '(ignore-error file-error ...)' ?  Are there any
potential problems with that in the context of saving a buffer?



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-30 14:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-29 15:29 Signaling an error while saving files due to file-extended-attributes Eli Zaretskii
2020-09-29 16:58 ` Paul Eggert
2020-09-29 17:14   ` Eli Zaretskii
2020-09-29 20:23     ` Paul Eggert
2020-09-30 14:43       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).