From: Francis Litterio <franl@world.std.com>
Cc: emacs-devel@gnu.org
Subject: Re: [BUG] No fontification when font-lock-add-keywords is passed nil as the mode
Date: Wed, 23 Jun 2004 14:16:14 -0400 [thread overview]
Message-ID: <upt7q6srr.fsf@world.std.com> (raw)
In-Reply-To: <E1BcExA-0008Br-Gt@fencepost.gnu.org> (Richard Stallman's message of "Sun, 20 Jun 2004 22:54:36 -0400")
Richard Stallman wrote:
> Does this fix it? Could people who are more familiar
> with font-lock mode verify this is correct? I have changed
> the format of a "compiled" keywords list, which might have introduced
> some bugs.
[patch omitted]
No, that patch did not fix it. I tested your patch by evaluating this form:
(progn
(require 'font-lock)
(if (get-buffer "font-lock-bug-demo")
(kill-buffer "font-lock-bug-demo"))
(switch-to-buffer "font-lock-bug-demo")
(set-face-foreground 'font-lock-keyword-face "red")
(font-lock-add-keywords nil '(("hello" 0 font-lock-keyword-face t)))
(turn-on-font-lock)
(insert "The word 'hello' in this sentence should be red, but it isn't.\n"))
next prev parent reply other threads:[~2004-06-23 18:16 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 [this message]
2004-06-24 23:49 ` Richard Stallman
2004-06-23 18:25 ` Francis Litterio
2004-06-24 23:49 ` Richard Stallman
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=upt7q6srr.fsf@world.std.com \
--to=franl@world.std.com \
--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).