mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Make bibtex-mode not signal errors when used programmatically
* lisp/textmodes/bibtex.el (bibtex-mode): Ensure that the font lock machinery is set up (bug#48447).
This commit is contained in:
parent
d858e0a18a
commit
2f7cd9cd73
1 changed files with 5 additions and 1 deletions
|
|
@ -3659,7 +3659,11 @@ if that value is non-nil.
|
|||
?\s)))))
|
||||
(if (and buffer-file-name enable-local-variables)
|
||||
(add-hook 'hack-local-variables-hook fun nil t)
|
||||
(funcall fun))))
|
||||
(funcall fun)))
|
||||
;; We may be using the mode programmatically to extract data, and we
|
||||
;; then need this to be set up first so that sexp-based movement
|
||||
;; commands don't bug out.
|
||||
(font-lock-set-defaults))
|
||||
|
||||
(defun bibtex-entry-alist (dialect)
|
||||
"Return entry-alist for DIALECT."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue