From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [BUG] No fontification when font-lock-add-keywords is passed nil as the mode
Date: Thu, 24 Jun 2004 19:49:26 -0400 [thread overview]
Message-ID: <E1BddyA-0002nf-Uc@fencepost.gnu.org> (raw)
In-Reply-To: <ud63qb04r.fsf@world.std.com> (message from Francis Litterio on Wed, 23 Jun 2004 14:25:14 -0400)
Eval this form to see the below
backtrace:
(progn
(require 'font-lock)
(defun my-dired-mode-hook ()
(font-lock-add-keywords nil '(("^ d" 2 'highlight nil)))
(turn-on-font-lock))
(add-hook 'dired-mode-hook 'my-dired-mode-hook)
(dired "/"))
This should fix the bug.
*** font-lock.el 20 Jun 2004 21:02:44 -0400 1.221
--- font-lock.el 24 Jun 2004 19:32:27 -0400
***************
*** 1561,1567 ****
;; Now compile the keywords.
(unless (eq (car font-lock-keywords) t)
(set (make-local-variable 'font-lock-keywords)
! (font-lock-compile-keywords keywords t))))))
\f
;;; Colour etc. support.
--- 1561,1567 ----
;; Now compile the keywords.
(unless (eq (car font-lock-keywords) t)
(set (make-local-variable 'font-lock-keywords)
! (font-lock-compile-keywords font-lock-keywords t))))))
\f
;;; Colour etc. support.
prev parent reply other threads:[~2004-06-24 23:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-14 16:35 [BUG] No fontification when font-lock-add-keywords is passed nil as the mode Francis Litterio
2004-06-21 2:54 ` Richard Stallman
2004-06-23 18:16 ` Francis Litterio
2004-06-24 23:49 ` Richard Stallman
2004-06-23 18:25 ` Francis Litterio
2004-06-24 23:49 ` Richard Stallman [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1BddyA-0002nf-Uc@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).