in `font-lock-add-keywords'.
+2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * display.texi (Font Lock): Prefer add-hook to using a non-nil `mode' arg
+ in `font-lock-add-keywords'.
+
2008-04-08 Glenn Morris <rgm@gnu.org>
* cal-xtra.texi, calendar.texi: Update for calendar name changes.
comments, use this:
@example
-(font-lock-add-keywords
- 'c-mode
- '(("\\<\\(FIXME\\):" 1 font-lock-warning-face t)))
+(add-hook 'c-mode-hook
+ (lambda ()
+ (font-lock-add-keywords nil
+ '(("\\<\\(FIXME\\):" 1 font-lock-warning-face t)))))
@end example
@findex font-lock-remove-keywords