all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: JD Smith <jdsmith@as.arizona.edu>
Subject: Font-lock in COMINT modes (again)
Date: Tue, 23 Jan 2007 13:46:18 -0700	[thread overview]
Message-ID: <pan.2007.01.23.20.46.18.44709@as.arizona.edu> (raw)


In Dec. we had a discussion about comint's new default of fontifying
strings and comments, due to the change:

----------------------------
revision 1.348
date: 2006-09-28 19:09:19 +0000;  author: rms;  state: Exp;  lines: +4 -1
(comint-mode): Bind font-lock-defaults non-nil.
----------------------------

At the time I proposed this simple patch to fix this:

*** comint.el	28 Nov 2006 11:25:56 -0700	1.350 --- comint.el	07 Dec 2006
10:54:48 -0700 ***************
*** 653,659 ****
    (make-local-variable 'comint-accum-marker) (setq comint-accum-marker
    (make-marker)) (make-local-variable 'font-lock-defaults)
!   (setq font-lock-defaults '(nil))
    (add-hook 'change-major-mode-hook 'font-lock-defontify nil t) ;; This
    behavior is not useful in comint buffers, and is annoying (set
    (make-local-variable 'next-line-add-newlines) nil))
--- 653,659 ----
    (make-local-variable 'comint-accum-marker) (setq comint-accum-marker
    (make-marker)) (make-local-variable 'font-lock-defaults)
!   (setq font-lock-defaults '(nil t))
    (add-hook 'change-major-mode-hook 'font-lock-defontify nil t) ;; This
    behavior is not useful in comint buffers, and is annoying (set
    (make-local-variable 'next-line-add-newlines) nil))

Should I install it?  We concluded that it would not result in any
performance penalty, and I assume (but don't know, never used it) the
facemenu issue the original change addresses wouldn't be adversely
affected.

JD

             reply	other threads:[~2007-01-23 20:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-23 20:46 JD Smith [this message]
2007-02-01  1:06 ` Font-lock in COMINT modes (again) JD Smith

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=pan.2007.01.23.20.46.18.44709@as.arizona.edu \
    --to=jdsmith@as.arizona.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.