From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.devel 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 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088015850 22397 80.91.224.253 (23 Jun 2004 18:37:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Jun 2004 18:37:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 23 20:37:24 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BdCce-00044e-00 for ; Wed, 23 Jun 2004 20:37:24 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BdCce-0007en-00 for ; Wed, 23 Jun 2004 20:37:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BdCe1-0001gK-11 for emacs-devel@quimby.gnus.org; Wed, 23 Jun 2004 14:38:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BdCdd-0001TW-Ab for emacs-devel@gnu.org; Wed, 23 Jun 2004 14:38:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BdCdb-0001T1-Nh for emacs-devel@gnu.org; Wed, 23 Jun 2004 14:38:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BdCdb-0001Sy-Lx for emacs-devel@gnu.org; Wed, 23 Jun 2004 14:38:23 -0400 Original-Received: from [192.74.137.142] (helo=TheWorld.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BdCc3-0006nF-3Q; Wed, 23 Jun 2004 14:36:47 -0400 Original-Received: from shell.TheWorld.com (root@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.12.8p1/8.12.8) with ESMTP id i5NIZ1Xt001589; Wed, 23 Jun 2004 14:35:03 -0400 Original-Received: from lt371-fran.theworld.com (shell01-g [192.74.137.71]) by shell.TheWorld.com (8.9.3/8.9.3) with ESMTP id OAA7907851; Wed, 23 Jun 2004 14:20:19 -0400 (EDT) Original-To: Richard Stallman X-Random-Quote: Do radioactive cats have eighteen half-lives? In-Reply-To: (Richard Stallman's message of "Sun, 20 Jun 2004 22:54:36 -0400") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25214 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25214 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"))