bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58082: recent whitespace-mode regression for read-only buffers


From: Lars Ingebrigtsen
Subject: bug#58082: recent whitespace-mode regression for read-only buffers
Date: Mon, 26 Sep 2022 12:56:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Kyle Meyer <kyle@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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]