GNU bug report logs -
#33810
26.1.50; bibtex initializes some global vars after opening a file
Previous Next
Reported by: Konstantin Reich <reich-cv <at> yandex.ru>
Date: Thu, 20 Dec 2018 09:02:02 UTC
Severity: normal
Tags: notabug
Found in version 26.1.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 33810 <at> debbugs.gnu.org (full text, mbox):
Konstantin Reich <reich-cv <at> yandex.ru> writes:
> Hey, i am using emacs 26.1.50
>
> When i ran the following code in just started emacs -Q
> (with-temp-buffer
> (insert "@article{aaaa,
> author = {AAA},
> title = {BBBB}
> }")
> (bibtex-mode)
> (bibtex-autokey-get-field "title"))
>
> I get the following error:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> looking-at(nil)
> bibtex-valid-entry(t)
> bibtex-end-of-entry()
After poking around in the bibtex code, I think this just isn't
supported. All the variables are like this:
(defvar bibtex-entry-maybe-empty-head nil
"Regexp matching the header line of a BibTeX entry (possibly without key).
Initialized by `bibtex-set-dialect'.")
And the dialect won't be set until you load a file, so I don't think
this is a bug.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 316 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.