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: Kyle Meyer <kyle <at> kyleam.com>
To: 58082 <at> debbugs.gnu.org
Cc: rhansen <at> rhansen.org, larsi <at> gnus.org, mip <at> cs.technion.ac.il
Subject: bug#58082: recent whitespace-mode regression for read-only buffers
Date: Sun, 25 Sep 2022 19:17:55 -0400
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?




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.