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: Wed, 12 Mar 2008 23:40:50 -0700 Message-ID: <200803130640.m2D6eoM5011012@sallyv1.ics.uci.edu> 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 1205390519 31752 80.91.229.12 (13 Mar 2008 06:41:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2008 06:41:59 +0000 (UTC) Cc: Rob Riepel , emacs-pretest-bug@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 13 07:42:27 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 1JZh90-0003sl-Ux for ged-emacs-devel@m.gmane.org; Thu, 13 Mar 2008 07:42:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZh8R-00047a-VX for ged-emacs-devel@m.gmane.org; Thu, 13 Mar 2008 02:41:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZh8N-00047N-5I for emacs-devel@gnu.org; Thu, 13 Mar 2008 02:41:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZh8K-000478-5H for emacs-devel@gnu.org; Thu, 13 Mar 2008 02:41:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZh8J-000475-Vf for emacs-devel@gnu.org; Thu, 13 Mar 2008 02:41:43 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JZh8J-0004jh-Qr for emacs-devel@gnu.org; Thu, 13 Mar 2008 02:41:43 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JZh8J-0005az-D2 for emacs-pretest-bug@gnu.org; Thu, 13 Mar 2008 02:41:43 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JZh8G-0004ix-FG for emacs-pretest-bug@gnu.org; Thu, 13 Mar 2008 02:41:43 -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 1JZh8G-0004iM-1Z for emacs-pretest-bug@gnu.org; Thu, 13 Mar 2008 02:41:40 -0400 X-ICS-MailScanner-Watermark: 1205995251.94141@TBBejBR/bBzt5UqA/koeiw 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 m2D6eoM5011012; Wed, 12 Mar 2008 23:40:50 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Wed, 12 Mar 2008 09:57:58 -0400") Original-Lines: 24 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:92375 gmane.emacs.pretest.bugs:21550 Archived-At: Stefan Monnier 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. > > 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? It might be too close to the release, but maybe we could apply the change for the light background case?