bibtex-mode: do not fail when local variables are disabled

* lisp/textmodes/bibtex.el (bibtex-mode): Check if
enable-local-variables is non-nil (bug#37957).
This commit is contained in:
Roland Winkler 2020-12-02 13:51:35 -06:00
parent d9167d940a
commit 40f42945ed

View file

@ -3483,7 +3483,7 @@ if that value is non-nil.
(make-string (+ bibtex-entry-offset
bibtex-contline-indentation)
?\s)))))
(if buffer-file-name
(if (and buffer-file-name enable-local-variables)
(add-hook 'hack-local-variables-hook fun nil t)
(funcall fun))))