all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jay Belanger <belanger@truman.edu>
Subject: comint and font-lock in CVS emacs
Date: Mon, 05 May 2003 12:32:12 -0500	[thread overview]
Message-ID: <m3y91l5mg3.fsf@truman.edu> (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

             reply	other threads:[~2003-05-05 17:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-05 17:32 Jay Belanger [this message]
2003-05-06 16:41 ` comint and font-lock in CVS emacs Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3y91l5mg3.fsf@truman.edu \
    --to=belanger@truman.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.