* bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only"
@ 2014-12-09 7:07 Kevin Ryde
2015-09-23 11:34 ` phs
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Kevin Ryde @ 2014-12-09 7:07 UTC (permalink / raw)
To: 19326
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only"
2014-12-09 7:07 bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only" Kevin Ryde
@ 2015-09-23 11:34 ` phs
2020-08-12 16:55 ` Stefan Kangas
2021-07-13 18:13 ` Lars Ingebrigtsen
2 siblings, 0 replies; 4+ messages in thread
From: phs @ 2015-09-23 11:34 UTC (permalink / raw)
To: 19326
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only"
2014-12-09 7:07 bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only" Kevin Ryde
2015-09-23 11:34 ` phs
@ 2020-08-12 16:55 ` Stefan Kangas
2021-07-13 18:13 ` Lars Ingebrigtsen
2 siblings, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2020-08-12 16:55 UTC (permalink / raw)
To: Kevin Ryde; +Cc: 19326
found 19326 28.0.50
tags 19326 + confirmed
severity 19326 minor
thanks
Kevin Ryde <user42_kevin@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only"
2014-12-09 7:07 bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only" Kevin Ryde
2015-09-23 11:34 ` phs
2020-08-12 16:55 ` Stefan Kangas
@ 2021-07-13 18:13 ` Lars Ingebrigtsen
2 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-13 18:13 UTC (permalink / raw)
To: Kevin Ryde; +Cc: 19326
Kevin Ryde <user42_kevin@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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-13 18:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 7:07 bug#19326: 24.4; tex-validate-buffer error "Buffer is read-only" Kevin Ryde
2015-09-23 11:34 ` phs
2020-08-12 16:55 ` Stefan Kangas
2021-07-13 18:13 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.