emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org creates bibtex fontification buffers without setting dialect, causes error
@ 2018-06-15  2:34 Adam Porter
  2018-06-15  8:15 ` Eric S Fraga
  2018-06-15 20:45 ` Nicolas Goaziou
  0 siblings, 2 replies; 3+ messages in thread
From: Adam Porter @ 2018-06-15  2:34 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-15 20:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-15  2:34 org creates bibtex fontification buffers without setting dialect, causes error Adam Porter
2018-06-15  8:15 ` Eric S Fraga
2018-06-15 20:45 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).