emacs-devel
[Top][All Lists]
Advanced

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

[BUG] No fontification when font-lock-add-keywords is passed nil as the


From: Francis Litterio
Subject: [BUG] No fontification when font-lock-add-keywords is passed nil as the mode
Date: Mon, 14 Jun 2004 12:35:56 -0400
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt)

This bug is a regression from Emacs 21.3.1.  When font-lock-add-keywords is
passed nil as the mode, fontification does not happen when font-lock-mode is
turned on.  Evaluate this form to reproduce the problem:

(progn
  (require 'font-lock)  
  (ignore-errors (kill-buffer "font-lock-bug-demo"))
  (switch-to-buffer "font-lock-bug-demo")

  (font-lock-add-keywords nil '(("hello" 0 font-lock-keyword-face t)))
  (turn-on-font-lock)

  (insert "The word 'hello' in this sentence should be fontified, but it 
isn't.\n\n")
  (insert (format "font-lock-mode == %s\n" font-lock-mode))
  (insert (format "font-lock-defaults == %s\n" font-lock-defaults))
  (insert (format "font-lock-defaults-alist == %s\n" font-lock-defaults-alist)))


In GNU Emacs 21.3.50.1 (i386-msvc-nt5.1.2600)
 of 2004-06-11 on LT371-FRAN
configured using `configure --with-msvc (12.00)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  erc-button-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-match-mode: t
  erc-fill-mode: t
  erc-netsplit-mode: t
  show-paren-mode: t
  auto-image-file-mode: t
  encoded-kbd-mode: t
  mouse-wheel-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: 1

Recent input:
SPC f a i l s SPC w h e n SPC C-e SPC p a s s e d SPC 
a SPC m o d e SPC o f SPC n i l M-> C-p C-SPC C-p C-p 
C-p C-w M-> C-x C-k y e s <return> <switch-frame> M-h 
f b <backspace> s u b m i t <M-backspace> s e n d - 
b u SPC <M-backspace> <M-backspace> b u g <M-backspace> 
r e p o r t - e SPC m SPC <return> C-x 1 M-x r e p 
o r t - e m SPC <return>

Recent messages:
>> Calling font-lock-set-defaults (in *mail to address@hidden) [2 times]
Parsing c:/franl/.mailrc...
Parsing c:/franl/.mail_aliases... done
Parsing c:/franl/.mailrc... done
>> Calling font-lock-set-defaults (in *mail to address@hidden) [2 times]
Auto-saving...done
Type C-x 4 b RET to restore the other window.  C-M-v to scroll the help.
Mark set [3 times]
Making completion list...
Loading emacsbug...done




reply via email to

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