From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Comment Syntax Highlighting in 22.1 Date: Tue, 05 Jun 2007 06:20:40 +0300 Message-ID: References: <516d7fa80706041548w2c141f48m2d074550f43fbe0c@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1181013663 24080 80.91.229.12 (5 Jun 2007 03:21:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2007 03:21:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 05 05:21:00 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HvPbP-00015V-Mr for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2007 05:20:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvPbP-0006uO-1R for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2007 23:20:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvPbB-0006t0-FZ for help-gnu-emacs@gnu.org; Mon, 04 Jun 2007 23:20:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvPb9-0006rI-QE for help-gnu-emacs@gnu.org; Mon, 04 Jun 2007 23:20:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvPb9-0006rE-NG for help-gnu-emacs@gnu.org; Mon, 04 Jun 2007 23:20:43 -0400 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HvPb9-00051X-2t for help-gnu-emacs@gnu.org; Mon, 04 Jun 2007 23:20:43 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-72-85.inter.net.il [80.230.72.85]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id CSV42572 (AUTH halo1); Tue, 5 Jun 2007 06:20:40 +0300 (IDT) In-reply-to: <516d7fa80706041548w2c141f48m2d074550f43fbe0c@mail.gmail.com> (mrmikerich@gmail.com) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44653 Archived-At: > Date: Mon, 4 Jun 2007 18:48:52 -0400 > From: "Mike Richards" > > I decided to try out 22.1 today and noticed that comments are no > longer highlighted as in the 21.x series (this is at the console, not > xemacs). > > For example, consider the following short file called 'test.pl': > > #!/bin/perl -w > # this is a comment > > In the previous version of emacs, the entire second line would be > highlighted red. But in 22.1 version only the pound sign is red, and > the rest of the line is in the default color (white). > > How is it possible to get the entire line to be red again? Customize the face font-lock-comment-face to have a non-default foreground color. Since Emacs 22 has font-lock turned on by default, this face has been changed to have the default foreground color on 8-color displays, and a (supposedly less intrusive) new face font-lock-comment-delimiter-face was introduced to show the beginning of the comment. For more details, see the definitions of these two faces on font-lock.el.