unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [bug] font-lock-add-keywords or related
@ 2004-07-02 10:03 Karl Chen
  2004-07-03 18:22 ` Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: Karl Chen @ 2004-07-02 10:03 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-07-09  9:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-02 10:03 [bug] font-lock-add-keywords or related Karl Chen
2004-07-03 18:22 ` Richard Stallman
2004-07-03 22:55   ` Karl Chen
2004-07-05 14:22     ` Richard Stallman
2004-07-09  9:53       ` Karl Chen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).