GNU bug report logs - #50431
revert-buffer doesn't preserve read-onlyness

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Juri Linkov <juri@HIDDEN>; dated Mon, 6 Sep 2021 15:42:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 50431 <at> debbugs.gnu.org:


Received: (at 50431) by debbugs.gnu.org; 9 Sep 2021 13:16:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 09 09:16:22 2021
Received: from localhost ([127.0.0.1]:34434 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mOJuf-0006fP-Lh
	for submit <at> debbugs.gnu.org; Thu, 09 Sep 2021 09:16:22 -0400
Received: from quimby.gnus.org ([95.216.78.240]:42930)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mOJud-0006Z9-NV
 for 50431 <at> debbugs.gnu.org; Thu, 09 Sep 2021 09:16:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=kgs7f7AjDCPd3u/Np0eDz+wd0g+t7ostIJRjtO+r84Y=; b=irerEQQA7rGzUGqZRSl9+H+v8Q
 GZkmk4jAn3CdhcLXfm8gZhoPlAQjdbpuuh/IndvJSYOQhvYNAkM6Qdw6d9EYQ8IHY2DF6RLGnwSwc
 j7QjhS1Et3ymuwDKfQZ8A4pTK7aUXqHGV2Q2O58OOIHqGrVjLLgPDnVbK5sfBvKf8I6c=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mOJuV-0007Dx-0K; Thu, 09 Sep 2021 15:16:13 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Richard Stallman <rms@HIDDEN>
Subject: Re: bug#50431: revert-buffer doesn't preserve read-onlyness
References: <87mtopkj2a.fsf@HIDDEN>
 <3ny289k6bd.fsf@HIDDEN> <87pmtkbcy4.fsf@HIDDEN>
 <E1mOAPX-0005Wx-VA@HIDDEN>
Date: Thu, 09 Sep 2021 15:16:10 +0200
In-Reply-To: <E1mOAPX-0005Wx-VA@HIDDEN> (Richard Stallman's message
 of "Wed, 08 Sep 2021 23:07:35 -0400")
Message-ID: <874katx52d.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Richard Stallman <rms@HIDDEN> writes: > How about just this:
 keep buffer-read-only unchanged? > > If it differs from the file's permissions,
 almost certainly > the user changed it and will beglad of revert-buffer
 preserves it. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 50431
Cc: rgm@HIDDEN, 50431 <at> debbugs.gnu.org, juri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Richard Stallman <rms@HIDDEN> writes:

> How about just this: keep buffer-read-only unchanged?
>
> If it differs from the file's permissions, almost certainly
> the user changed it and will beglad of revert-buffer preserves it.

Yes, but that's my point -- we need to store the file's permissions
somewhere so that we can see whether buffer-read-only was set/unset
because of that or not.  (Since the file's permissions may change
afterwards.)

> The other case is that the file permissions have been changed
> since visiting the file.  But users won't be shocked if
> revert-buffer fails to change buffer-read-only in that case,
> and they will know what to do.

No, people have work flows that depend on revert-buffer updating the
readedness based on the file's readedness, and this would disrupt that.
And there's no need to.  We just have to do a small bit of programming.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#50431; Package emacs. Full text available.

Message received at 50431 <at> debbugs.gnu.org:


Received: (at 50431) by debbugs.gnu.org; 9 Sep 2021 03:07:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 08 23:07:45 2021
Received: from localhost ([127.0.0.1]:33836 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mOAPg-0004LT-Rd
	for submit <at> debbugs.gnu.org; Wed, 08 Sep 2021 23:07:45 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51082)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1mOAPf-0004LD-OJ
 for 50431 <at> debbugs.gnu.org; Wed, 08 Sep 2021 23:07:44 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42854)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1mOAPZ-0007sk-Dw; Wed, 08 Sep 2021 23:07:37 -0400
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1mOAPX-0005Wx-VA; Wed, 08 Sep 2021 23:07:36 -0400
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87pmtkbcy4.fsf@HIDDEN> (message from Lars Ingebrigtsen on Tue, 
 07 Sep 2021 17:52:19 +0200)
Subject: Re: bug#50431: revert-buffer doesn't preserve read-onlyness
References: <87mtopkj2a.fsf@HIDDEN>
 <3ny289k6bd.fsf@HIDDEN> <87pmtkbcy4.fsf@HIDDEN>
Message-Id: <E1mOAPX-0005Wx-VA@HIDDEN>
Date: Wed, 08 Sep 2021 23:07:35 -0400
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 50431
Cc: rgm@HIDDEN, 50431 <at> debbugs.gnu.org, juri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Making revert-buffer preserve user-initiated readedness changes isn't
  > trivial.  We'd need to record whether the buffer is read-only because it
  > was read from a read-only file (and vice versa), and then use that data
  > point in revert-buffer (to see whether we should respect the current
  > readedness state or not).

How about just this: keep buffer-read-only unchanged?

If it differs from the file's permissions, almost certainly
the user changed it and will beglad of revert-buffer preserves it.

The other case is that the file permissions have been changed
since visiting the file.  But users won't be shocked if
revert-buffer fails to change buffer-read-only in that case,
and they will know what to do.


-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#50431; Package emacs. Full text available.

Message received at 50431 <at> debbugs.gnu.org:


Received: (at 50431) by debbugs.gnu.org; 7 Sep 2021 15:52:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 07 11:52:31 2021
Received: from localhost ([127.0.0.1]:57447 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mNdOh-0003YR-5P
	for submit <at> debbugs.gnu.org; Tue, 07 Sep 2021 11:52:31 -0400
Received: from quimby.gnus.org ([95.216.78.240]:49074)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mNdOf-0003YC-2V
 for 50431 <at> debbugs.gnu.org; Tue, 07 Sep 2021 11:52:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=4GnVdbV6iCrrKCA6WIyA/pkUNGyGr9QwzhBc+dzKJK4=; b=OwRGmDcYcNOJEFiUTbh9H4G4dY
 sE5+YUzGm70kpUs7kyM0a3FsN695c5KqCR48wnG4sJfZ20zi68YjaJTn745sFjKKcUxt/kp4noRD6
 IvpytuyOiSuQrx+F3uGMGNbyTT0Mg4+G18GE6fJMz5seqE8oMWRdwaz+zfkphfnGv+94=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mNdOV-0007bp-IQ; Tue, 07 Sep 2021 17:52:21 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#50431: revert-buffer doesn't preserve read-onlyness
References: <87mtopkj2a.fsf@HIDDEN> <3ny289k6bd.fsf@HIDDEN>
Date: Tue, 07 Sep 2021 17:52:19 +0200
In-Reply-To: <3ny289k6bd.fsf@HIDDEN> (Glenn Morris's message of
 "Mon, 06 Sep 2021 12:38:30 -0400")
Message-ID: <87pmtkbcy4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Glenn Morris <rgm@HIDDEN> writes: > Juri Linkov wrote: >
 >> I don't know at what moment this regression occurred,
 >> but now M-x revert-buffer
 in a read-only file buffer >> doesn't keep it read-only. > > For me, it reverts
 it to whate [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 50431
Cc: 50431 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Glenn Morris <rgm@HIDDEN> writes:

> Juri Linkov wrote:
>
>> I don't know at what moment this regression occurred,
>> but now M-x revert-buffer in a read-only file buffer
>> doesn't keep it read-only.
>
> For me, it reverts it to whatever the permission bits on the file say.
> Which is IMO the correct behaviour for revert-buffer.

Yup. 

> Perhaps you are referring to a short-lived change from
> https://debbugs.gnu.org/35166#24
> which was quickly reverted?

Making revert-buffer preserve user-initiated readedness changes isn't
trivial.  We'd need to record whether the buffer is read-only because it
was read from a read-only file (and vice versa), and then use that data
point in revert-buffer (to see whether we should respect the current
readedness state or not).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#50431; Package emacs. Full text available.

Message received at 50431 <at> debbugs.gnu.org:


Received: (at 50431) by debbugs.gnu.org; 6 Sep 2021 16:38:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 06 12:38:40 2021
Received: from localhost ([127.0.0.1]:54315 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mNHdo-0000HQ-Fz
	for submit <at> debbugs.gnu.org; Mon, 06 Sep 2021 12:38:40 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55962)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1mNHdl-0000HB-Sy
 for 50431 <at> debbugs.gnu.org; Mon, 06 Sep 2021 12:38:38 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45510)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rgm@HIDDEN>)
 id 1mNHdf-00075R-Ux; Mon, 06 Sep 2021 12:38:32 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rgm@HIDDEN>)
 id 1mNHde-00011X-Lv; Mon, 06 Sep 2021 12:38:30 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#50431: revert-buffer doesn't preserve read-onlyness
References: <87mtopkj2a.fsf@HIDDEN>
X-Spook: tempest Tamil Tigers SETA Brownout Guantanamo Exposure
X-Ran: T-.6ba+!Mop;R#R9f~Y3a.Hrew\S*JBRu#c|nGqYArKviQiTM6RQ#evcufa~yy2)!</$S>
X-Hue: brightwhite
X-Attribution: GM
Date: Mon, 06 Sep 2021 12:38:30 -0400
In-Reply-To: <87mtopkj2a.fsf@HIDDEN> (Juri Linkov's message of "Mon, 
 06 Sep 2021 18:03:09 +0300")
Message-ID: <3ny289k6bd.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 50431
Cc: 50431 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Juri Linkov wrote:

> I don't know at what moment this regression occurred,
> but now M-x revert-buffer in a read-only file buffer
> doesn't keep it read-only.

For me, it reverts it to whatever the permission bits on the file say.
Which is IMO the correct behaviour for revert-buffer.
Perhaps you are referring to a short-lived change from
https://debbugs.gnu.org/35166#24
which was quickly reverted?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#50431; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Sep 2021 15:41:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 06 11:41:38 2021
Received: from localhost ([127.0.0.1]:54255 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mNGkc-0007Ax-Bc
	for submit <at> debbugs.gnu.org; Mon, 06 Sep 2021 11:41:38 -0400
Received: from lists.gnu.org ([209.51.188.17]:44024)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1mNGka-0007Aq-Nl
 for submit <at> debbugs.gnu.org; Mon, 06 Sep 2021 11:41:37 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33286)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1mNGka-00084q-GQ
 for bug-gnu-emacs@HIDDEN; Mon, 06 Sep 2021 11:41:36 -0400
Received: from relay1-d.mail.gandi.net ([217.70.183.193]:19577)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1mNGkX-0001PS-H7
 for bug-gnu-emacs@HIDDEN; Mon, 06 Sep 2021 11:41:35 -0400
Received: (Authenticated sender: juri@HIDDEN)
 by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id E7F6E24000B
 for <bug-gnu-emacs@HIDDEN>; Mon,  6 Sep 2021 15:41:28 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: revert-buffer doesn't preserve read-onlyness
Organization: LINKOV.NET
Date: Mon, 06 Sep 2021 18:03:09 +0300
Message-ID: <87mtopkj2a.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=217.70.183.193; envelope-from=juri@HIDDEN;
 helo=relay1-d.mail.gandi.net
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

I don't know at what moment this regression occurred,
but now M-x revert-buffer in a read-only file buffer
doesn't keep it read-only.




Acknowledgement sent to Juri Linkov <juri@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#50431; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 9 Sep 2021 13:30:02 UTC

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