[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock-reference-face no longer defined?
From: |
Daniel Martín |
Subject: |
Re: font-lock-reference-face no longer defined? |
Date: |
Fri, 16 Sep 2022 19:50:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) |
"T.V Raman" <raman@google.com> writes:
> Background:
>
> There are times that I'm seeing errors from jit-lock re
> font-lock-reference-face not being defined -- have seen it while
> working in elisp files, but dont have a reliable repro case.
>
> Doing a recursive grep in the Emacs sources @HEAD, I see numerous
> references to font-lock-reference-face but I indeed dont see it
> defined anywhere. Confused ...
It was an obsolete alias since Emacs 20.3 and was removed by this
commit:
commit 107f832577123ea7ebe867cba55601d0142f546f
Author: Stefan Kangas <stefan@marxist.se>
Date: Sun Jul 31 11:33:42 2022 +0200
Delete additional items obsolete since 20, 21 and 22
* lisp/font-lock.el (font-lock-reference-face): Delete variable
alias obsolete since 20.3.
* lisp/progmodes/cc-cmds.el (c-toggle-auto-state): Delete alias
obsolete since 22.1.
* lisp/replace.el (query-replace-regexp-eval): Delete function
obsolete since 22.1.
(replace-count, replace-re-search-function): Doc fixes; adjust for
above deleted function.
Code should use font-lock-constant-face instead. I'm also confused
because I still see references to the old variable name in the Emacs
codebase.