From: Lars Ingebrigtsen Date: Mon, 24 Aug 2020 12:34:42 +0000 (+0200) Subject: Change how #:uninterned symbols are font-locked in Lisp mode X-Git-Tag: emacs-28.0.90~6433 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1fa90f77ede33a9b988072173ec10c4364b24192;p=emacs.git Change how #:uninterned symbols are font-locked in Lisp mode * lisp/emacs-lisp/lisp-mode.el (lisp-fdefs): Font-lock #:uninterned symbols as a single entity instead of #: and uninterned separately (bug#43001). --- diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 584ed8c6f90..352210f859d 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -506,9 +506,7 @@ This will generate compile-time constants from BINDINGS." (1 font-lock-constant-face prepend)) ;; Uninterned symbols, e.g., (defpackage #:my-package ...) ;; must come before keywords below to have effect - (,(concat "\\(#:\\)\\(" lisp-mode-symbol-regexp "\\)") - (1 font-lock-comment-delimiter-face) - (2 font-lock-doc-face)) + (,(concat "#:" lisp-mode-symbol-regexp "") 0 font-lock-builtin-face) ;; Constant values. (,(concat "\\_<:" lisp-mode-symbol-regexp "\\_>") (0 font-lock-builtin-face))