GNU bug report logs - #37957
BibTeX dialect not set if local variables disabled

Previous Next

Package: emacs;

Reported by: Richard Copley <rcopley <at> gmail.com>

Date: Mon, 28 Oct 2019 09:47:01 UTC

Severity: normal

Done: "Roland Winkler" <winkler <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Roland Winkler" <winkler <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Richard Copley <rcopley <at> gmail.com>, 37957 <at> debbugs.gnu.org
Subject: bug#37957: BibTeX dialect not set if local variables disabled
Date: Mon, 28 Oct 2019 20:52:27 -0500
On Mon Oct 28 2019 Lars Ingebrigtsen wrote:
> Do you have an example .bib file that can be used to reproduce this bug?

I can, indeed, reproduce this with `emacs -Q', setting
enable-local-variables to nil and then loading any BibTeX file.

Yet it is not clear to me what is the proper solution for this.

Currently, bibtex-mode makes bibtex-set-dialect an element of
hack-local-variables-hook.  This hook is called only if
enable-local-variables is non-nil.  Of course, bibtex-mode could
call bibtex-set-dialect directly if enable-local-variables is nil.
Yet I guess that enable-local-variables being nil may break more
things if hack-local-variables-hook is not called.

If nothing else, we could mention in the docstring of
hack-local-variables-hook that this hook is not called if
enable-local-variables is nil.

Roland




This bug report was last modified 4 years and 257 days ago.

Previous Next


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