[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Font-lock in COMINT modes
From: |
JD Smith |
Subject: |
Re: Font-lock in COMINT modes |
Date: |
Thu, 07 Dec 2006 11:00:30 -0700 |
User-agent: |
Pan/0.14.2.91 (As She Crawled Across the Table) |
Here is the change which altered the default behavior in comint modes.
----------------------------
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.
----------------------------
If font-lock-defaults is left nil instead of being explicitly set to
'(nil) as it now is, keywords-only is implicitly true, and strings and
comments are not fontified by default. With this change, strings and
comments are fontified by default in all comint modes (unless they set
font-lock-defaults on their own).
This patch would restore the earlier behavior. Since I'm uncertain
whether '(nil) was intended to nullify keywords-only, I'm not sure if the
patch is appropriate (i.e. is '(nil t) practically any different from nil).
*** 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))
- Font-lock in COMINT modes, JD Smith, 2006/12/06
- Re: Font-lock in COMINT modes, JD Smith, 2006/12/07
- Re: Font-lock in COMINT modes,
JD Smith <=
- Re: Font-lock in COMINT modes, Richard Stallman, 2006/12/08
- Re: Font-lock in COMINT modes, JD Smith, 2006/12/08
- Re: Font-lock in COMINT modes, Stefan Monnier, 2006/12/08
- Re: Font-lock in COMINT modes, JD Smith, 2006/12/11
- Re: Font-lock in COMINT modes, Richard Stallman, 2006/12/12
- Message not available
- Re: Font-lock in COMINT modes, Richard Stallman, 2006/12/18
- Re: Font-lock in COMINT modes, Chong Yidong, 2006/12/18
- Re: Font-lock in COMINT modes, Stefan Monnier, 2006/12/18
- Re: Font-lock in COMINT modes, Richard Stallman, 2006/12/20
- Re: Font-lock in COMINT modes, Stefan Monnier, 2006/12/20