unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#58082: recent whitespace-mode regression for read-only buffers
@ 2022-09-25 23:17 Kyle Meyer
  2022-09-26 10:56 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Kyle Meyer @ 2022-09-25 23:17 UTC (permalink / raw)
  To: 58082; +Cc: rhansen, larsi, mip

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?





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-27 11:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-25 23:17 bug#58082: recent whitespace-mode regression for read-only buffers Kyle Meyer
2022-09-26 10:56 ` Lars Ingebrigtsen
2022-09-26 23:21   ` Richard Hansen
2022-09-27 11:44     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).