[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] No fontification when font-lock-add-keywords is passed nil as
From: |
Richard Stallman |
Subject: |
Re: [BUG] No fontification when font-lock-add-keywords is passed nil as the mode |
Date: |
Thu, 24 Jun 2004 19:49:26 -0400 |
Eval this form to see the below
backtrace:
(progn
(require 'font-lock)
(defun my-dired-mode-hook ()
(font-lock-add-keywords nil '(("^ d" 2 'highlight nil)))
(turn-on-font-lock))
(add-hook 'dired-mode-hook 'my-dired-mode-hook)
(dired "/"))
This should fix the bug.
*** font-lock.el 20 Jun 2004 21:02:44 -0400 1.221
--- font-lock.el 24 Jun 2004 19:32:27 -0400
***************
*** 1561,1567 ****
;; Now compile the keywords.
(unless (eq (car font-lock-keywords) t)
(set (make-local-variable 'font-lock-keywords)
! (font-lock-compile-keywords keywords t))))))
;;; Colour etc. support.
--- 1561,1567 ----
;; Now compile the keywords.
(unless (eq (car font-lock-keywords) t)
(set (make-local-variable 'font-lock-keywords)
! (font-lock-compile-keywords font-lock-keywords t))))))
;;; Colour etc. support.