Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
gnu.emacs.help
Conversations
About
info
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
Void variable error in fontification code
7 views
Skip to first unread message
Davin Pearson
unread,
Nov 10, 2016, 9:29:05 PM
11/10/16
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
How come with the following lines of elisp code commented out:
;;(setq d-face-m4 'd-face-m4)
;;(setq d-face-m4-dnl 'd-face-m4-dnl)
I get the following error in my *Messages* buffer:
Error during redisplay: (jit-lock-function 9575) signaled (void-variable d-face-m4-dnl) [9 times]
Putting back the lines like so:
(setq d-face-m4 'd-face-m4)
(setq d-face-m4-dnl 'd-face-m4-dnl)
gets rid of the error messages.
I have the following lines of elisp code in my .emacs file:
(defun d-font-lock-add-begin (keywords)
(if (fboundp 'font-lock-add-keywords)
(font-lock-add-keywords nil keywords nil)
(setq font-lock-keywords
(append
keywords
font-lock-keywords))))
(d-font-lock-add-begin
`(
(,(concat "\\(\\<m4_" "dnl\\)\\(.$\\)") (1 d-face-m4-dnl t) (2 font-lock-comment-face))
)
)
0 new messages