From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: incomplete comment colorization in terminals Date: Wed, 12 Mar 2008 09:57:58 -0400 Message-ID: References: <20080311231514.B718249C0BB@daedalus.stanford.edu> <200803120445.m2C4jcDe015828@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205330317 2280 80.91.229.12 (12 Mar 2008 13:58:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2008 13:58:37 +0000 (UTC) Cc: Rob Riepel , emacs-pretest-bug@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 12 14:59:05 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 1JZRTf-0007zI-54 for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 14:58:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZRT6-0006cU-Lh for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 09:58:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZRT2-0006bo-Uy for emacs-devel@gnu.org; Wed, 12 Mar 2008 09:58:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZRT0-0006a8-TT for emacs-devel@gnu.org; Wed, 12 Mar 2008 09:58:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZRT0-0006a4-Pu for emacs-devel@gnu.org; Wed, 12 Mar 2008 09:58:02 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JZRT0-0007CU-NK for emacs-devel@gnu.org; Wed, 12 Mar 2008 09:58:02 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JZRT0-0002wS-4f for emacs-pretest-bug@gnu.org; Wed, 12 Mar 2008 09:58:02 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JZRSx-0007Bi-Bj for emacs-pretest-bug@gnu.org; Wed, 12 Mar 2008 09:58:02 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JZRSx-0007BY-1X for emacs-pretest-bug@gnu.org; Wed, 12 Mar 2008 09:57:59 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkkFAO5910fO+JwVUGdsb2JhbACQaAEBJxKXFYEG X-IronPort-AV: E=Sophos;i="4.25,488,1199682000"; d="scan'208";a="15919313" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 12 Mar 2008 09:57:58 -0400 Original-Received: from pastel.home ([206.248.156.21]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id SQR37258; Wed, 12 Mar 2008 09:57:58 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 174E07F05; Wed, 12 Mar 2008 09:57:58 -0400 (EDT) In-Reply-To: <200803120445.m2C4jcDe015828@sallyv1.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 11 Mar 2008 21:45:38 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:92281 gmane.emacs.pretest.bugs:21543 Archived-At: >> 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. Stefan