emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug] font-lock-add-keywords or related


From: Karl Chen
Subject: Re: [bug] font-lock-add-keywords or related
Date: Sat, 03 Jul 2004 15:55:42 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

>>>>> "rms" == Richard Stallman <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]