GNU bug report logs - #58082
recent whitespace-mode regression for read-only buffers

Previous Next

Package: emacs;

Reported by: Kyle Meyer <kyle <at> kyleam.com>

Date: Sun, 25 Sep 2022 23:19:02 UTC

Severity: normal

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Kyle Meyer <kyle <at> kyleam.com>
Cc: 58082 <at> debbugs.gnu.org, mip <at> cs.technion.ac.il, rhansen <at> rhansen.org
Subject: bug#58082: recent whitespace-mode regression for read-only buffers
Date: Mon, 26 Sep 2022 12:56:26 +0200
Kyle Meyer <kyle <at> kyleam.com> writes:

> Before f47a5324f44 (whitespace: Redo BoB/EoB empty line highlighting,
> 2022-09-11, bug#37467), this snippet runs without an issue:
>
>   (let ((b (generate-new-buffer "ws-read-only-test")))
>     (with-current-buffer b
>       (insert " ")
>       (setq buffer-read-only t)
>       (whitespace-mode 1))
>     (pop-to-buffer b))
>
> After that commit, activating whitespace mode fails:
>
>   whitespace--update-bob-eob: Buffer is read-only: #<buffer ws-read-only-test>
>
> Perhaps some of the additions in f47a5324f44 should let-bind
> inhibit-read-only?

Yup.  I've now done this in Emacs 29.




This bug report was last modified 2 years and 239 days ago.

Previous Next


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