From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: incomplete comment colorization in terminals Date: Tue, 11 Mar 2008 21:45:38 -0700 Message-ID: <200803120445.m2C4jcDe015828@sallyv1.ics.uci.edu> References: <20080311231514.B718249C0BB@daedalus.stanford.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205300919 2334 80.91.229.12 (12 Mar 2008 05:48:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2008 05:48:39 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Rob Riepel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 12 06:49:06 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JZJpq-0002Pg-7U for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 06:49:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZJpH-0004uU-Pz for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 01:48:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZIsc-0005Ip-3f for emacs-devel@gnu.org; Wed, 12 Mar 2008 00:47:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZIsV-0005IR-0I for emacs-devel@gnu.org; Wed, 12 Mar 2008 00:47:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZIsU-0005IO-QO for emacs-devel@gnu.org; Wed, 12 Mar 2008 00:47:46 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JZIsU-0005TN-Gc for emacs-devel@gnu.org; Wed, 12 Mar 2008 00:47:46 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JZIsU-0002O2-6I for emacs-pretest-bug@gnu.org; Wed, 12 Mar 2008 00:47:46 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JZIsQ-0005Sr-Ti for emacs-pretest-bug@gnu.org; Wed, 12 Mar 2008 00:47:45 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JZIsQ-0005Sd-HJ for emacs-pretest-bug@gnu.org; Wed, 12 Mar 2008 00:47:42 -0400 X-ICS-MailScanner-Watermark: 1205901938.79385@3OZ+ueD5HucfSudWyzdQEg Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m2C4jcDe015828; Tue, 11 Mar 2008 21:45:38 -0700 (PDT) In-Reply-To: <20080311231514.B718249C0BB@daedalus.stanford.edu> (Rob Riepel's message of "Tue, 11 Mar 2008 16:15:14 -0700 (PDT)") Original-Lines: 15 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:92248 gmane.emacs.pretest.bugs:21536 Archived-At: Rob Riepel writes: > 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.