]> git.eshelyaron.com Git - emacs.git/commit
Test face name variables are bound before using them in cc-fonts.el
authorAlan Mackenzie <acm@muc.de>
Tue, 25 Oct 2022 13:28:57 +0000 (13:28 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 25 Oct 2022 13:30:45 +0000 (13:30 +0000)
commit1e1be54156108a25ba78ca4268af3113945d574e
tree0dfed8985557800f62139c4abd8c3176e309d79d
parent5b90a718ee6674544f892aa572ff042c1ae2a21f
Test face name variables are bound before using them in cc-fonts.el

This fixes bug #58641.

Also, set c-reference-face-name to font-lock-constant face in preference to
c-label-face-name.

* lisp/progmodes/cc-fonts.el (c-preprocessor-face-name, c-label-face-name)
(c-constant-face-name, c-reference-face-name): Test variables with the same
name as font-lock faces are bound before accessing their values.
(c-reference-face-name): Use font-lock-constant face in preference to
c-label-face-name.
lisp/progmodes/cc-fonts.el