bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#37957: BibTeX dialect not set if local variables disabled


From: Roland Winkler
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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]