emacs-pretest-bug
[Top][All Lists]
Advanced

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

`font-lock-add-keywords' breaks existing keywords (or something like tha


From: Oliver Scholz
Subject: `font-lock-add-keywords' breaks existing keywords (or something like that)
Date: Wed, 14 Jul 2004 13:42:10 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt)

CVS from today: Starting from emacs -q --no-site-file eval the
following:

(progn
  (switch-to-buffer (generate-new-buffer "*tmp*"))
  (emacs-lisp-mode)
  (font-lock-mode 1)
  ;; This is the evildoer:
  (font-lock-add-keywords nil '(("lirum larum" . font-lock-warning-face)))
  ;; Examples:
  (insert ";; Strings and comments work o.k.:\n" "\"this is a string\"\n\n")
  (insert ";; The new keyword is highlighted correctly:\n" "lirum larum\n\n")
  (insert ";; But this is not hightlighted correctly:\n")
  (insert "(defun lirum-larum ()\n  (save-excursion\n    (message \"lirum 
larum\"))))"))

    Oliver
-- 
Oliver Scholz               27 Messidor an 212 de la Révolution
Taunusstr. 25               Liberté, Egalité, Fraternité!
60329 Frankfurt a. M.       http://www.jungdemokratenhessen.de
Tel. (069) 97 40 99 42      http://www.jdjl.org




reply via email to

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