Subject: bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only"

From: Stefan Kangas <[email-masked]>
Date: Wed, 12 Aug 2020 09:55:15 -0700

found 19326 28.0.50
tags 19326 + confirmed
severity 19326 minor
thanks

Kevin Ryde <[email-masked]> writes:

> Running
>
>     emacs -Q /tmp/foo.tex
>     M-x tex-validate-buffer
>     =>
>     error: Buffer is read-only: #<buffer *Occur*>
>
> I hoped it would say something, or nothing, about the buffer -- an empty
> buffer in this case.
>
> It looks like occur-mode may set the occur buffer read-only which
> tex-validate-buffer doesn't expect when writing its output there.

I can reproduce this on current master.

Best regards,
Stefan Kangas