From: Spenser Truex <lists@spensertruex.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Request: add cl-font-lock to Emacs or Elpa
Date: Sat, 21 Mar 2020 15:40:59 -0700 [thread overview]
Message-ID: <87eetll4as.fsf@spensertruex.com> (raw)
In-Reply-To: <jwvtv2hfm7a.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sat, 21 Mar 2020 17:12:49 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Since we are trying to get this into lisp-mode.el at this point, I'm
>> going to refrain from further renaming.
>
> Agreed.
>
>> As for the question of my FSF paperwork, I'm currently in a state of
>> limbo. I have submitted my papers, but the president of the institution
>> in my signature is apparently too busy to sign.
>
> Let's hope patience will resolve this problem.
Indeed, with current events it is unlikely to be resolved. Currently I
have waited 9 months. The email is president@sfsu.edu.
>
>> I hope that my limited contribution to the project will permit this to
>> be looked over.
>
> Could be, but I don't know which part you have contributed (I've already
> asked twice what has contributed what but haven't seen any answer to the
> question yet ;-( ), so I can't judge it.
>
I've done a git-blame for myself. Here is the code I added. Before I
contributed the macro the code repeated the pattern it generates.
(defmacro font-lock-cl-add-regexes (fn mode &rest symbol-face)
"Expand to more than one call to font-lock.
Argument FN is the function used to send off the regex. Commonly
`font-lock-add-keywords' or `font-lock-remove-keywords'. Argument
MODE is the mode where the regexes are sent.
Optional argument SYMBOL-FACE dotted-pair of (regex-var . font-face)."
`(progn
,@(cl-loop for s in symbol-face
collect
`(,fn
',mode
`((,(regexp-opt ,(car s) 'symbols)
. ,(cdr ',s)))))))
(font-lock-cl-add-regexes
font-lock-add-keywords
lisp-mode
(font-lock-cl-built-in--functions . font-lock-function-name-face)
(font-lock-cl-built-in--variables . font-lock-variable-name-face)
(font-lock-cl-built-in--types . font-lock-type-face)
(font-lock-cl-built-in--symbols . font-lock-builtin-face)
(font-lock-cl--character-names . font-lock-variable-name-face))
--
Spenser Truex
spensertruex.com
San Francisco, USA
next prev parent reply other threads:[~2020-03-21 22:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-15 6:58 Request: add cl-font-lock to Emacs or Elpa Spenser Truex
2020-03-15 14:31 ` Eli Zaretskii
2020-03-15 16:12 ` Stefan Monnier
[not found] ` <jwvpnddmx7i.fsf-monnier+emacs@gnu.org>
2020-03-15 20:28 ` Spenser Truex
2020-03-15 20:57 ` Drew Adams
2020-03-17 17:32 ` Spenser
2020-03-17 17:43 ` Drew Adams
2020-03-17 18:13 ` Stefan Monnier
2020-03-17 18:25 ` Drew Adams
2020-03-17 18:42 ` Stefan Monnier
2020-03-19 13:56 ` YUE Daian
2020-03-19 14:19 ` Stefan Monnier
2020-03-19 14:41 ` YUE Daian
2020-03-19 17:15 ` Stefan Monnier
2020-03-21 6:59 ` YUE Daian
[not found] ` <87y2rtech3.fsf@spensertruex.com>
[not found] ` <jwvtv2hfm7a.fsf-monnier+emacs@gnu.org>
2020-03-21 22:40 ` Spenser Truex [this message]
2020-03-22 17:54 ` Stefan Monnier
[not found] <1F8693F6-6DD1-4D5A-A1B1-C38BCAD4977F@spensertruex.com>
2020-03-17 18:02 ` Spenser
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eetll4as.fsf@spensertruex.com \
--to=lists@spensertruex.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).