I defined a custom face
(defface my-face '((t . (:background "green"))) "text")
that I want to use for font-lock syntax highlighting.
(defvar my-font-lock-keywords `( ("^\\*.*\\|;.*" . font-lock-comment-face) ("'[^']*'" . font-lock-string-face) ( ,(regexp-opt my-keywords 'symbols) . font-lock-keyword-face) ( ,(regexp-opt my-specials 'symbols) . my-face) (">[0-9A-F]+\\>\\|\\<[0-9]+\\>" . font-lock-constant-face) ))
The entire thing works fine if I replace
font-lock-doc-face or similar, but loading my mode with this definition yields the error message
Error during redisplay: (jit-lock-function 1) signaled (void-variable my-face)
What is wrong with my face and the font-lock definition? Note that
my-face and correctly shows its defined properties.