1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

; elisp-mode.el: Improve consistency among face names.

Rename a couple of faces to solidify the convention that the
face name 'elisp-foo' implies "references to foo", not "foo
definitions".  For definitions we use 'elisp-deffoo' if foo is
only one word, or 'elisp-bar-baz-definition' otherwise.

* lisp/progmodes/elisp-mode.el (elisp-function-reference):
Rename to 'elisp-function'.
(elisp-macro-call): Rename to 'elisp-macro'.
(elisp-non-local-exit):
(elisp-unknown-call):
(elisp-special-form):
* lisp/emacs-lisp/elisp-scope.el:
* test/lisp/progmodes/elisp-mode-resources/semantic-highlighting.el:
Update references to renamed faces.
This commit is contained in:
Eshel Yaron 2025-10-12 10:33:58 +02:00
parent 026f3bbd8d
commit 73feb431b3
No known key found for this signature in database
GPG key ID: EF3EE9CA35D78618
3 changed files with 41 additions and 41 deletions

View file

@ -328,19 +328,19 @@ code analysis."
(defface elisp-symbol-role-definition '((t :foreground "#00008b" :inherit font-lock-function-name-face))
"Face for highlighting symbol role definitions in Emacs Lisp code.")
(defface elisp-function-reference '((t :inherit font-lock-function-call-face))
(defface elisp-function '((t :inherit font-lock-function-call-face))
"Face for highlighting function calls in Emacs Lisp code.")
(defface elisp-non-local-exit '((t :inherit elisp-function-reference :underline "red"))
(defface elisp-non-local-exit '((t :inherit elisp-function :underline "red"))
"Face for highlighting calls to functions that do not return.")
(defface elisp-unknown-call '((t :inherit elisp-function-reference :foreground "#2f4f4f"))
(defface elisp-unknown-call '((t :inherit elisp-function :foreground "#2f4f4f"))
"Face for highlighting unknown functions/macros in Emacs Lisp code.")
(defface elisp-macro-call '((t :inherit font-lock-keyword-face))
(defface elisp-macro '((t :inherit font-lock-keyword-face))
"Face for highlighting macro calls in Emacs Lisp code.")
(defface elisp-special-form '((t :inherit elisp-macro-call))
(defface elisp-special-form '((t :inherit elisp-macro))
"Face for highlighting special forms in Emacs Lisp code.")
(defface elisp-throw-tag '((t :inherit font-lock-constant-face))