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:
parent
d9167d940a
commit
40f42945ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue