Backport commit 2b311a47d from Emacs

* lisp/ox-beamer.el (org-mode): Assume that font-lock is preloaded,
which it has been since Emacs 22.1.

Assume that font-lock is preloaded
2b311a47dd0cde82fb9d32c303f13700cae4f0b3
Stefan Kangas
Fri Aug 25 20:35:38 2023 +0200
This commit is contained in:
Stefan Kangas 2023-08-19 11:48:58 +02:00 committed by Kyle Meyer
parent 860d4fd169
commit bb7473f3d3
1 changed files with 4 additions and 5 deletions

View File

@ -924,11 +924,10 @@ holding export options."
"Support for editing Beamer oriented Org mode files."
:lighter " Bm")
(when (fboundp 'font-lock-add-keywords)
(font-lock-add-keywords
'org-mode
'((":\\(B_[a-z]+\\|BMCOL\\):" 1 'org-beamer-tag prepend))
'prepend))
(font-lock-add-keywords
'org-mode
'((":\\(B_[a-z]+\\|BMCOL\\):" 1 'org-beamer-tag prepend))
'prepend)
(defface org-beamer-tag '((t (:box (:line-width 1 :color "grey40"))))
"The special face for beamer tags."