unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [BUG] No fontification when font-lock-add-keywords is passed nil as the mode
@ 2004-06-14 16:35 Francis Litterio
  2004-06-21  2:54 ` Richard Stallman
  0 siblings, 1 reply; 6+ messages in thread
From: Francis Litterio @ 2004-06-14 16:35 UTC (permalink / raw)


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 emacs-devel@gnu.org*) [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 emacs-devel@gnu.org*) [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

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

end of thread, other threads:[~2004-06-24 23:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-14 16:35 [BUG] No fontification when font-lock-add-keywords is passed nil as the mode Francis Litterio
2004-06-21  2:54 ` Richard Stallman
2004-06-23 18:16   ` Francis Litterio
2004-06-24 23:49     ` Richard Stallman
2004-06-23 18:25   ` Francis Litterio
2004-06-24 23:49     ` Richard Stallman

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).