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: Re: [bug] font-lock-add-keywords or related Date: Sat, 03 Jul 2004 15:55:42 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: quarl+dated+1089327020.c7a6db@nospam.quarl.org NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1088895387 23812 80.91.224.253 (3 Jul 2004 22:56:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Jul 2004 22:56:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jul 04 00:56:22 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 1BgtQk-00075A-00 for ; Sun, 04 Jul 2004 00:56:22 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgtQk-0007Od-00 for ; Sun, 04 Jul 2004 00:56:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgtSd-000219-8N for emacs-devel@quimby.gnus.org; Sat, 03 Jul 2004 18:58:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BgtSP-000213-0y for emacs-devel@gnu.org; Sat, 03 Jul 2004 18:58:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BgtSN-00020r-FD for emacs-devel@gnu.org; Sat, 03 Jul 2004 18:58:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgtSN-00020o-CL for emacs-devel@gnu.org; Sat, 03 Jul 2004 18:58:03 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BgtQC-0004MN-0T for emacs-devel@gnu.org; Sat, 03 Jul 2004 18:55:49 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BgtQ9-0001Pk-00 for ; Sun, 04 Jul 2004 00:55:45 +0200 Original-Received: from hkn.eecs.berkeley.edu ([128.32.47.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Jul 2004 00:55:45 +0200 Original-Received: from quarl by hkn.eecs.berkeley.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Jul 2004 00:55:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: hkn.eecs.berkeley.edu X-Quack-Archive: 1 Gmane-From: 1 User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:/k+vSt8ObMyYyQBive7sFONwDnQ= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 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:25428 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25428 >>>>> "rms" == Richard Stallman writes: rms> Can you look at the data structures altered by rms> font-lock-add-keywords and see what is wrong in them rms> afterward? This fixes the bug. (Actually I only debugged font-lock-add-keywords but the second function below has such similar code it's likely the same bug.) --- font-lock.el 28 Jun 2004 04:45:01 +0200 1.223 +++ font-lock.el 04 Jul 2004 00:52:55 +0200 @@ -693,7 +693,7 @@ ;; If the keywords were compiled before, compile them again. (if was-compiled (set (make-local-variable 'font-lock-keywords) - (font-lock-compile-keywords keywords t))))))) + (font-lock-compile-keywords font-lock-keywords t))))))) (defun font-lock-update-removed-keyword-alist (mode keywords append) ;; Update `font-lock-removed-keywords-alist' when adding new @@ -801,7 +801,7 @@ ;; If the keywords were compiled before, compile them again. (if was-compiled (set (make-local-variable 'font-lock-keywords) - (font-lock-compile-keywords keywords t))))))) + (font-lock-compile-keywords font-lock-keywords t)))))))   ;;; Font Lock Support mode. -- Karl 2004-07-03 15:50