From: Adam Porter <adam@alphapapa.net>
To: emacs-orgmode@gnu.org
Subject: org creates bibtex fontification buffers without setting dialect, causes error
Date: Thu, 14 Jun 2018 21:34:07 -0500 [thread overview]
Message-ID: <87sh5ohj6o.fsf@alphapapa.net> (raw)
Hi,
For a while now I've been getting "(wrong-type-argument stringp nil)"
errors from a timer running bibtex-parse-buffers-stealthily. Finally
I've tracked it down to an "*org-src-fontification:bibtex-mode*" buffer
(which is hidden, but shows up in ibuffer by pressing "C-u g"). The
backtrace was not very helpful, apparently because of some defsubsts
being used, but by stepping through code with edebug, I found that the
problem is that the fontification buffer is in BibTeX mode, but
bibtex-set-dialect has not been called, so certain variables are not
initialized in that buffer, and eventually bibtex-parse-keys fails in
its defsubst bibtex-type-in-head. Calling bibtex-set-dialect fixes the
problem.
It seems easy enough to fix: Org should call bibtex-set-dialect in its
BibTeX fontification buffer. But why has no one else has noticed this
problem? It seems like this should happen to every Org user who has a
BibTeX source block in an open Org buffer.
Thanks.
next reply other threads:[~2018-06-15 2:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-15 2:34 Adam Porter [this message]
2018-06-15 8:15 ` org creates bibtex fontification buffers without setting dialect, causes error Eric S Fraga
2018-06-15 20:45 ` Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sh5ohj6o.fsf@alphapapa.net \
--to=adam@alphapapa.net \
--cc=emacs-orgmode@gnu.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 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.