diff options
| -rw-r--r-- | lisp/textmodes/bibtex.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 6763da046ff..333cfa51695 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -3659,7 +3659,11 @@ if that value is non-nil. | |||
| 3659 | ?\s))))) | 3659 | ?\s))))) |
| 3660 | (if (and buffer-file-name enable-local-variables) | 3660 | (if (and buffer-file-name enable-local-variables) |
| 3661 | (add-hook 'hack-local-variables-hook fun nil t) | 3661 | (add-hook 'hack-local-variables-hook fun nil t) |
| 3662 | (funcall fun)))) | 3662 | (funcall fun))) |
| 3663 | ;; We may be using the mode programmatically to extract data, and we | ||
| 3664 | ;; then need this to be set up first so that sexp-based movement | ||
| 3665 | ;; commands don't bug out. | ||
| 3666 | (font-lock-set-defaults)) | ||
| 3663 | 3667 | ||
| 3664 | (defun bibtex-entry-alist (dialect) | 3668 | (defun bibtex-entry-alist (dialect) |
| 3665 | "Return entry-alist for DIALECT." | 3669 | "Return entry-alist for DIALECT." |