unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Rob Riepel <riepel@networking.stanford.edu>
To: Eli Zaretskii <eliz@gnu.org>, Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: incomplete comment colorization in terminals
Date: Fri, 14 Mar 2008 17:49:59 -0700	[thread overview]
Message-ID: <E9552DD0-42FB-4780-90BB-9A3A907293C2@networking.stanford.edu> (raw)
In-Reply-To: <ubq5kk1pb.fsf@gnu.org>

On Mar 11, 2008, at 9:26 PM, Eli Zaretskii wrote:

>> From: Rob Riepel <riepel@networking.stanford.edu>
>> Date: Tue, 11 Mar 2008 16:15:14 -0700 (PDT)
>>
>> 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.
>
> This is not a bug, but a deliberate feature.  There's a new face  
> named font-lock-comment-delimiter-face.


And On Mar 11, 2008, at 9:45 PM, Dan Nicolaescu wrote:

> 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.


Thank you, Eli and Dan, for educating me.  I thought I had read NEWS,  
but apparently not.  :-(

Many of the debian systems I work on lack the ncurses-term package,  
so I often cannot set TERM to xterm-256color or even xterm-16color.   
So even though the terminals I use support 16 or more colors I'm  
often limited to xterm-color (from the debian ncurses-base package).   
So I've resorted to this:

   (and
    (boundp 'font-lock-comment-delimiter-face)
    (set-face-attribute 'font-lock-comment-face t :inherit
                        font-lock-comment-delimiter-face))

I really like the color schemes that come with 16+ color support, but  
there's no "mode" value for --color=mode that sets anything above 8.   
Is there a way to set the number of colors that can be displayed  
in .emacs?

--
Rob Riepel
(650) 725-7577
http://geek.stanford.edu






  parent reply	other threads:[~2008-03-15  0:49 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-11 23:15 incomplete comment colorization in terminals Rob Riepel
2008-03-12  4:26 ` Eli Zaretskii
2008-03-12  6:44   ` Dan Nicolaescu
2008-03-12  8:17     ` Nick Roberts
2008-03-12 13:54       ` Stefan Monnier
2008-03-12 15:07         ` Dan Nicolaescu
2008-03-12 17:51       ` Richard Stallman
2008-03-13  6:38         ` Dan Nicolaescu
2008-03-13 22:24           ` Richard Stallman
2008-03-13 22:44             ` Dan Nicolaescu
2008-03-14  0:21               ` Nick Roberts
2008-03-14  0:34                 ` Dan Nicolaescu
2008-03-15  4:46                   ` Nick Roberts
2008-03-15  8:34                     ` Dan Nicolaescu
2008-03-15  0:49   ` Rob Riepel [this message]
2008-03-15 14:34     ` Eli Zaretskii
2008-03-12  4:45 ` Dan Nicolaescu
2008-03-12 13:57   ` Stefan Monnier
2008-03-13  6:40     ` Dan Nicolaescu
2008-03-13 15:01       ` Stefan Monnier
2008-03-13 18:55         ` Glenn Morris
2008-03-13 21:52           ` Dan Nicolaescu
2008-03-14  4:16           ` Dan Nicolaescu
2008-03-14 15:08             ` Stefan Monnier
2008-03-19  4:02         ` Dan Nicolaescu
2008-03-15  0:50     ` Rob Riepel
2008-03-12 13:10 ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E9552DD0-42FB-4780-90BB-9A3A907293C2@networking.stanford.edu \
    --to=riepel@networking.stanford.edu \
    --cc=dann@ics.uci.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).