unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Kyle Meyer <kyle@kyleam.com>
Cc: 58082@debbugs.gnu.org, mip@cs.technion.ac.il, rhansen@rhansen.org
Subject: bug#58082: recent whitespace-mode regression for read-only buffers
Date: Mon, 26 Sep 2022 12:56:26 +0200	[thread overview]
Message-ID: <875yha9zfp.fsf@gnus.org> (raw)
In-Reply-To: <87mtan11ss.fsf@kyleam.com> (Kyle Meyer's message of "Sun, 25 Sep 2022 19:17:55 -0400")

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	other threads:[~2022-09-26 10:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-25 23:17 bug#58082: recent whitespace-mode regression for read-only buffers Kyle Meyer
2022-09-26 10:56 ` Lars Ingebrigtsen [this message]
2022-09-26 23:21   ` Richard Hansen
2022-09-27 11:44     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875yha9zfp.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=58082@debbugs.gnu.org \
    --cc=kyle@kyleam.com \
    --cc=mip@cs.technion.ac.il \
    --cc=rhansen@rhansen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).