From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: [bug] font-lock-add-keywords or related Date: 02 Jul 2004 12:03:31 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088762669 10561 80.91.224.253 (2 Jul 2004 10:04:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jul 2004 10:04:29 +0000 (UTC) Keywords: CERN SpamKiller Note: -50 Charset: west-latin Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jul 02 12:04:18 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 1BgKu2-0006DC-00 for ; Fri, 02 Jul 2004 12:04:18 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgKu2-0003gc-00 for ; Fri, 02 Jul 2004 12:04:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgKvp-0005J9-I9 for emacs-devel@quimby.gnus.org; Fri, 02 Jul 2004 06:06:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BgKvQ-0005FZ-6k for emacs-devel@gnu.org; Fri, 02 Jul 2004 06:05:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BgKvO-0005CN-0P for emacs-devel@gnu.org; Fri, 02 Jul 2004 06:05:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgKvN-0005Bs-LE for emacs-devel@gnu.org; Fri, 02 Jul 2004 06:05:41 -0400 Original-Received: from [137.138.166.171] (helo=cernmxlb.cern.ch) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BgKtM-0001Mj-F5 for emacs-devel@gnu.org; Fri, 02 Jul 2004 06:03:36 -0400 X-Filter: CERNMX07 SMTPGW CERN Spam Sink v1.0 Original-Received: from PCOLRENT20.cern.ch ([137.138.37.14]) by cernmxlb.cern.ch with Microsoft SMTPSVC(6.0.3790.0); Fri, 2 Jul 2004 12:03:34 +0200 Original-Received: by PCOLRENT20.cern.ch (Postfix, from userid 9390) id 3D25E5FFA2; Fri, 2 Jul 2004 12:03:32 +0200 (CEST) Original-To: Emacs Developement List X-Quack-Archive: 1 X-Payment: hashcash 1.2 0:040702:emacs-devel@gnu.org:5aba68073f2d6ea777036339 X-Hashcash: 0:040702:emacs-devel@gnu.org:5aba68073f2d6ea777036339 Original-Lines: 28 X-OriginalArrivalTime: 02 Jul 2004 10:03:34.0421 (UTC) FILETIME=[D6045C50:01C4601B] 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:25390 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25390 This possible bug occurs in emacs cvs 2004-07-01 (probably related to 2004-06-24 change) but not in emacs from about two weeks ago. emacs -q /tmp/a.el ;; type this into a.el: (global-font-lock-mode 1) (progn (defun f () (font-lock-add-keywords ;; nil '(("\\<\\(FIXME\\|TODO\\|XXX+\\)\\([:)]\\|$\\)" 1 font-lock-warning-face prepend)))) nil '(("zzz")))) (add-hook 'find-file-hooks 'f) (revert-buffer nil t)) ;; C-x C-s (save) and C-x C-e (evaluate) on global-font-lock-mode ;; line. Now buffer is fontified. Now evaluate the second sexp. ;; Now buffer is only minimally fontified (only strings and ;; comments) -- Karl 2004-07-02 11:56