From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: font-lock-comment-delimiter-face Date: Wed, 11 May 2005 12:25:45 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1115828542 24153 80.91.229.2 (11 May 2005 16:22:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 May 2005 16:22:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 11 18:22:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DVtyC-0003Z2-VS for ged-emacs-devel@m.gmane.org; Wed, 11 May 2005 18:22:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVu6x-0005Zo-V7 for ged-emacs-devel@m.gmane.org; Wed, 11 May 2005 12:31:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVu6H-0005WA-9M for emacs-devel@gnu.org; Wed, 11 May 2005 12:30:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVu6E-0005UM-NJ for emacs-devel@gnu.org; Wed, 11 May 2005 12:30:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVu6E-0005UJ-Kb for emacs-devel@gnu.org; Wed, 11 May 2005 12:30:18 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DVu9O-0008Bm-86 for emacs-devel@gnu.org; Wed, 11 May 2005 12:33:34 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DVu1p-0003VB-Nk; Wed, 11 May 2005 12:25:45 -0400 Original-To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Tue, 26 Apr 2005 16:58:40 -0400) 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:36975 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36975 Seems odd to introduce a new face whose name refers to "comment" even though the only two known uses for it are not for comments but for email citations. Those were the only uses yet implemented for it, but now I've changed font-lock-fontify-syntactically-region to use it for comment delimiters. I think this will work for all modes. It works for C mode and Lisp mode. It would be cleaner, in some ways, to use font-lock-comment-face for the delimiters and use font-lock-comment-text-face for the comment contents. The improvement is that this would not involve any change in what font-lock-comment-face looks like. It would just involve adding font-lock-comment-text-face and using it. However, the method that works in font-lock-fontify-syntactically-region for font-lock-comment-delimiter-face does not work when adapted to font-lock-comment-text-face. I can't figure out why, but it seems to relate to jit-lock.