From: Davin Pearson <davin.pearson@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Void variable error in fontification code
Date: Thu, 10 Nov 2016 18:29:03 -0800 (PST) [thread overview]
Message-ID: <15289920-037f-45b7-94ec-ec67ef271274@googlegroups.com> (raw)
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))
)
)
next reply other threads:[~2016-11-11 2:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-11 2:29 Davin Pearson [this message]
2016-11-11 16:04 ` Void variable error in fontification code Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15289920-037f-45b7-94ec-ec67ef271274@googlegroups.com \
--to=davin.pearson@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.