* 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
* Re: comint and font-lock in CVS emacs
2003-05-05 17:32 comint and font-lock in CVS emacs Jay Belanger
@ 2003-05-06 16:41 ` Kai Großjohann
0 siblings, 0 replies; 2+ messages in thread
From: Kai Großjohann @ 2003-05-06 16:41 UTC (permalink / raw)
Jay Belanger <belanger@truman.edu> writes:
> For some reason, comint and font-lock don't play well in CVS emacs.
I think that comint now uses fields by default? Hm. But it also
still has syntax highlighting for the current line. Weird.
--
file-error; Data: (Opening input file no such file or directory ~/.signature)
^ 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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.