emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incomplete comment colorization in terminals


From: Stefan Monnier
Subject: Re: incomplete comment colorization in terminals
Date: Thu, 13 Mar 2008 11:01:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> >> When using font-locking in a terminal window (xterm and the like)
>> >> single-line comments are only highlighted to the first non-space
>> >> character after a space.  This happens in more than one language-
>> >> specific mode - I've tried Emacs-lisp and CPerl modes.
>> >> 
>> >> The bug does not occur when running Emacs under X, only in a terminal,
>> >> and only for certain terminal types.  The bug is present when TERM is
>> >> set to xterm or xterm-color, but not when TERM is set to xterm-16color.
>> 
>> > A good way to avoid this, and the recommended way run emacs in a
>> > terminal emulator, is to set TERM to xterm-256color.  All current
>> > xterm compatible terminal emulators support 256 colors, when using that
>> > your colors will look almost the same in the terminal as the do in X.
>> 
>> The NEWS entry for font-lock-comment-delimiter-face in Emacs-22 is
>> insufficient I believe.  It should explain the effect of the
>> introduction of this new face and should point to xterm-256color as well
>> as other methods to recover the previous behavior.

> Should we add a new entry for emacs-22.2 to correct these issues?

Yes, please.

> It might be too close to the release, but maybe we could apply the
> change for the light background case?

If noone objects, it's fine by me.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]