From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Spenser Truex Newsgroups: gmane.emacs.devel Subject: Re: Request: add cl-font-lock to Emacs or Elpa Date: Sat, 21 Mar 2020 15:40:59 -0700 Message-ID: <87eetll4as.fsf@spensertruex.com> References: <56660D97-604F-4C15-8961-D35F07E6F29B@spensertruex.com> <87y2rtech3.fsf@spensertruex.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="13174"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 21 23:41:46 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jFmoM-0003L5-Ed for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Mar 2020 23:41:46 +0100 Original-Received: from localhost ([::1]:41444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFmoL-0008KX-Fb for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Mar 2020 18:41:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60880) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFmnq-0007w2-Ve for emacs-devel@gnu.org; Sat, 21 Mar 2020 18:41:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFmnp-0000Hu-S2 for emacs-devel@gnu.org; Sat, 21 Mar 2020 18:41:14 -0400 Original-Received: from spensertruex.com ([66.70.189.182]:50298) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jFmnp-0000Ha-Ng for emacs-devel@gnu.org; Sat, 21 Mar 2020 18:41:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spensertruex.com; s=myselector; t=1584830280; bh=n+zGOJc9evRlo6fqdCIuxhpBEIUx80/SgKdSvJ/ZyRo=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=floQMd993jELJlwWGB3DTpvnapOa/XFfGmfcUZp9PYK+muLvOw75YlxofBf9ZUk+V zJLOHhVk2LmL6qB9nTHpRoo3J3vlGxnZg1aoKNbPDYu5lTPhCd2WbcWkl0KN0cAnEt aSFqis5LCNJ+ufW+T9lhF5GAbz8CqXqGZrwit72Lt6LGmOOcq20lDWkfNM9bkUHQ+h zv/dAVQsLyqzmlHBX0fNqGBAVVW7R3sNVoBMs4IYXOCT1YjapVO6NfDDQDpZOe2frP Fh2Ty4vquIuV//jFBPP44HUw6QdQ+5j0JjMzroQmor8cq/mNT7YpasNVJDfGuo2eO8 bAFp1vJMgXv4g== In-Reply-To: (Stefan Monnier's message of "Sat, 21 Mar 2020 17:12:49 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.70.189.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245651 Archived-At: Stefan Monnier 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