diff options
author | Grégoire Jadi <gregoire.jadi@univ-nantes.fr> | 2020-08-19 15:36:08 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-19 15:36:08 +0200 |
commit | bdc5d38c7cdff3e5a66ca6369f1027d550afc7a7 (patch) | |
tree | aadfd5d1991caac4f5bf1219f5a50079451887ad /lisp/textmodes/bibtex.el | |
parent | 3d0e0d9e77ac59725cffe89fdef9388bde39888c (diff) | |
download | emacs-bdc5d38c7cdff3e5a66ca6369f1027d550afc7a7.tar.gz emacs-bdc5d38c7cdff3e5a66ca6369f1027d550afc7a7.tar.bz2 emacs-bdc5d38c7cdff3e5a66ca6369f1027d550afc7a7.zip |
Ensure `bibtex-set-dialect' is executed in bibtex buffers
* lisp/textmodes/bibtex.el (bibtex-mode): Call `bibtex-set-dialect'.
* test/automated/bibtex-tests.el: Add regression tests (bug#21764).
Diffstat (limited to 'lisp/textmodes/bibtex.el')
-rw-r--r-- | lisp/textmodes/bibtex.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 0018b89d858..910bd7dbb9d 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el @@ -3445,6 +3445,7 @@ if that value is non-nil. (set (make-local-variable 'syntax-propertize-function) (syntax-propertize-via-font-lock bibtex-font-lock-syntactic-keywords)) + (bibtex-set-dialect nil t) ;; Allow `bibtex-dialect' as a file-local variable. (add-hook 'hack-local-variables-hook #'bibtex-set-dialect nil t)) |