GNU bug report logs - #30685
end-of-file mode should respect read-only mode

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sat, 3 Mar 2018 03:04:02 UTC

Severity: wishlist

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: end-of-file mode should respect read-only mode
Date: Sat, 03 Mar 2018 07:34:10 +0800
In the modeline the curious user sees a ":" and clicks it.
and sees [DOS], [Mac], etc.

Frightened, the user keeps clicking until he cycles back to its original
":" state, and breathes a sigh of relief.

But wait, it's time for lunch and time to close the editor program.

But now it's asking him about saving the file.

"I thought that -r--r--r-- file owned by the boss and which I viewed in
read-only mode, or even view-mode, was understood by everybody to be
something I didn't intend to meddle with." "Now it thinks I wanted to
modify it..."

Now with extra sweat dripping, he hits undo,

    command-execute: Buffer is read-only: #<buffer boss's_secret_employee_evaluations.txt>

"G*d@*m it, half of the editor knows things are read-only, the other
half doesn't."

Sure, he can just answer "no" when asked to save the file. But why
embroil him this way in the first place. Readonly should be Readonly.

Now Curious Other User 2 also clicks the ":".
At the end when closing emacs she is asked if she wants to save the
file, to which she agrees. Which results in even more warnings and
eventual failure to save the file anyway...




This bug report was last modified 7 years and 169 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.