GNU bug report logs - #19326
24.4; tex-validate-buffer error "Buffer is read-only"

Previous Next

Package: emacs;

Reported by: Kevin Ryde <user42_kevin <at> yahoo.com.au>

Date: Tue, 9 Dec 2014 07:13:02 UTC

Severity: minor

Tags: confirmed

Found in versions 24.4, 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19326 in the body.
You can then email your comments to 19326 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19326; Package emacs. (Tue, 09 Dec 2014 07:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Ryde <user42_kevin <at> yahoo.com.au>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 09 Dec 2014 07:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kevin Ryde <user42_kevin <at> yahoo.com.au>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4; tex-validate-buffer error "Buffer is read-only"
Date: Tue, 09 Dec 2014 18:07:58 +1100
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.


In GNU Emacs 24.4.1 (i586-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2014-10-26 on x86-csail-01, modified by Debian
Configured using:
 `configure --build i586-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
 --build i586-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
 --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars
 --without-gconf --without-gsettings 'CFLAGS=-g -O2
 -fstack-protector-strong -Wformat -Werror=format-security -Wall'
 CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-z,relro'

Important settings:
  value of $LANG: en_AU.utf8
  locale-coding-system: utf-8-unix




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19326; Package emacs. (Wed, 23 Sep 2015 11:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 19326 <at> debbugs.gnu.org (full text, mbox):

From: phs <phs <at> lsv.ens-cachan.fr>
To: 19326 <at> debbugs.gnu.org
Subject: Re: 24.4; tex-validate-buffer error "Buffer is read-only"
Date: Wed, 23 Sep 2015 13:34:35 +0200
have the same bug in my config. Basically I can't use 
tex-validate-buffer or tex-validate-region which I'd rank as "severe" 
from a user's viewpoint.

The code in tex-mode.el acknowledges that using occur-mode is not a good 
solution and argues for a major rewrite.

A quick hack that may help the original poster (and other users) is to 
insert the following line in your emacs init file:

    (add-hook 'occur-mode-hook (function (lambda () (read-only-mode -1))))

--phs

In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2015-04-10 on builder10-9.porkrind.org
Windowing system distributor `Apple', version 10.3.1348
Configured using:
 `configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application 
Support/Emacs/site-lisp''

Important settings:
  value of $LC_ALL: en_US
  value of $LANG: en_US
  locale-coding-system: utf-8-unix





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19326; Package emacs. (Wed, 12 Aug 2020 16:56:02 GMT) Full text and rfc822 format available.

Message #11 received at 19326 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Kevin Ryde <user42_kevin <at> yahoo.com.au>
Cc: 19326 <at> debbugs.gnu.org
Subject: Re: bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only"
Date: Wed, 12 Aug 2020 09:55:15 -0700
found 19326 28.0.50
tags 19326 + confirmed
severity 19326 minor
thanks

Kevin Ryde <user42_kevin <at> yahoo.com.au> 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




bug Marked as found in versions 28.0.50. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 12 Aug 2020 16:56:03 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 12 Aug 2020 16:56:03 GMT) Full text and rfc822 format available.

Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 12 Aug 2020 16:56:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19326; Package emacs. (Tue, 13 Jul 2021 18:14:01 GMT) Full text and rfc822 format available.

Message #20 received at 19326 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Kevin Ryde <user42_kevin <at> yahoo.com.au>
Cc: 19326 <at> debbugs.gnu.org
Subject: Re: bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only"
Date: Tue, 13 Jul 2021 20:13:39 +0200
Kevin Ryde <user42_kevin <at> yahoo.com.au> 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.

This should now be fixed in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 28.1, send any further explanations to 19326 <at> debbugs.gnu.org and Kevin Ryde <user42_kevin <at> yahoo.com.au> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 13 Jul 2021 18:14:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 11 Aug 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 317 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.