From: Tom Gillespie <tgbugs@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>
Subject: [PATCH] Restore font-lock-type-face for lisp mode &symbols
Date: Sat, 3 Dec 2022 22:57:28 -0800 [thread overview]
Message-ID: <CA+G3_PPvON6RZ5aQfB4b-m_AUqOfGRF2WHVy4LF8zYvNdpiLHQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 159 bytes --]
Hi,
I noticed that font locking for lisp and elisp &keywords changed.
Looks like it was a mistake, so here's a patch to restore the correct
face. Best!
Tom
[-- Attachment #2: 0001-Restore-font-lock-type-face-for-lisp-mode-symbols.patch --]
[-- Type: text/x-patch, Size: 1751 bytes --]
From ca10502328ce21c47b7eadb2dd01236084fa0873 Mon Sep 17 00:00:00 2001
From: Tom Gillespie <tgbugs@gmail.com>
Date: Sat, 3 Dec 2022 22:41:15 -0800
Subject: [PATCH] Restore font-lock-type-face for lisp mode &symbols
* lisp/emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-2)
(lisp-el-font-lock-keywords-2): Testore use of type face instead of
builtin face for &symbol keywords
This fixes what appears to be a copy paste error that changed the face
for common lisp and emacs lisp &symbol style keywords that was
introduced in a498e5f8301eeb3bf7b15136469449ab4c93b99a by restoring
the type face to font-lock-type-face as consistent with the comments.
---
lisp/emacs-lisp/lisp-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 7e39a77aed5..bf879158188 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -514,7 +514,7 @@ lisp-mode--search-key
(0 font-lock-builtin-face))
;; ELisp and CLisp `&' keywords as types.
(,(lambda (bound) (lisp-mode--search-key "&" bound))
- (0 font-lock-builtin-face))
+ (0 font-lock-type-face))
;; ELisp regexp grouping constructs
(,(lambda (bound)
(catch 'found
@@ -567,7 +567,7 @@ lisp-mode--search-key
(0 font-lock-builtin-face))
;; ELisp and CLisp `&' keywords as types.
(,(lambda (bound) (lisp-mode--search-key "&" bound))
- (0 font-lock-builtin-face))
+ (0 font-lock-type-face))
;; ELisp regexp grouping constructs
;; This is too general -- rms.
;; A user complained that he has functions whose names start with `do'
--
2.37.4
next reply other threads:[~2022-12-04 6:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-04 6:57 Tom Gillespie [this message]
2022-12-04 17:52 ` [PATCH] Restore font-lock-type-face for lisp mode &symbols Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+G3_PPvON6RZ5aQfB4b-m_AUqOfGRF2WHVy4LF8zYvNdpiLHQ@mail.gmail.com \
--to=tgbugs@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.