* comint and font-lock in CVS emacs
@ 2003-05-05 17:32 Jay Belanger
2003-05-06 16:41 ` Kai Großjohann
0 siblings, 1 reply; 2+ messages in thread
From: Jay Belanger @ 2003-05-05 17:32 UTC (permalink / raw)
For some reason, comint and font-lock don't play well in CVS emacs.
If I define a mode that calls comint-mode, and then tries to do some
font-locking, such as
(defun my-mode ()
"..."
(interactive)
(comint-mode)
(make-local-variable 'font-lock-defaults)
(setq font-lock-defaults
'((my-font-lock-keywords my-font-lock-keywords-1
my-font-lock-keywords-2 my-font-lock-keywords-3)
nil t))
...
The font-locking is ignored, although it works well in emacs 21.2.
Has something about comint-mode changed? (I didn't see anything
relevant in the Changelog.)
(I'm not sure why I didn't use define-derived-mode, but when I change
it to that, the font-locking works, but the fonts on the input line
get overridden but the input face; in 21.2, the input face properties
get added to the font-locking.)
Jay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-06 16:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-05 17:32 comint and font-lock in CVS emacs Jay Belanger
2003-05-06 16:41 ` Kai Großjohann
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).