]> git.eshelyaron.com Git - emacs.git/commitdiff
Change how #:uninterned symbols are font-locked in Lisp mode
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 24 Aug 2020 12:34:42 +0000 (14:34 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 24 Aug 2020 12:34:42 +0000 (14:34 +0200)
* lisp/emacs-lisp/lisp-mode.el (lisp-fdefs): Font-lock
#:uninterned symbols as a single entity instead of #: and
uninterned separately (bug#43001).

lisp/emacs-lisp/lisp-mode.el

index 584ed8c6f905991d5150d602f518ddb933406b02..352210f859d2ea85e39203eb3acf31a9a9b23869 100644 (file)
@@ -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))