From f4a8f4f8d0a4999fc0b0493bac307a38653374f7 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 18 Jan 2025 18:43:28 +0100 Subject: [PATCH] Restore autoload cookie highlighting --- lisp/progmodes/elisp-mode.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index fb5383af4f1..83f5cf6d9a0 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -543,7 +543,11 @@ This is the `font-lock-fontify-region-function' for `emacs-lisp-mode'." prepend)) (lisp--match-confusable-symbol-character 0 '(face font-lock-warning-face - help-echo "Confusable character"))) + help-echo "Confusable character")) + ;; Emacs Lisp autoload cookies. Supports the slightly different + ;; forms used by mh-e, calendar, etc. + (,lisp-mode-autoload-regexp (3 font-lock-warning-face prepend) + (2 font-lock-function-name-face prepend t))) "Highlighting patterns for Emacs Lisp mode.") ;;;###autoload -- 2.39.5