GNU bug report logs -
#30685
end-of-file mode should respect read-only mode
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#30685: end-of-file mode should respect read-only mode
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 30685 <at> debbugs.gnu.org.
--
30685: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30685
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 30685 <at> debbugs.gnu.org
> Date: Wed, 07 Mar 2018 04:35:15 +0800
>
> >>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
> EZ> If the user had Read the Fine Manual...
>
> (info "(emacs) Misc Buffer")
> A buffer can be “read-only”, which means that commands to change its
> contents are not allowed.
>
> So add:
>
> "'Contents' do not include end-of-line conventions. There is currently
> no way to protect against them getting changed."
I clarified this in a different way.
Thanks.
[Message part 3 (message/rfc822, inline)]
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.