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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#30685: closed (end-of-file mode should respect read-only mode)
Date: Thu, 08 Mar 2018 15:49:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 08 Mar 2018 17:48:38 +0200
with message-id <83woymo9ex.fsf <at> gnu.org>
and subject line Re: bug#30685: end-of-file mode should respect read-only mode
has caused the debbugs.gnu.org bug report #30685,
regarding end-of-file mode should respect read-only mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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>
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...


[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 30685-done <at> debbugs.gnu.org
Subject: Re: bug#30685: end-of-file mode should respect read-only mode
Date: Thu, 08 Mar 2018 17:48:38 +0200
> 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.


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.