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: Fri, 20 May 2005 17:57:13 -0400 Message-ID: References: <87wtq3ydmf.fsf-monnier+emacs@gnu.org> <17029.21411.495779.643570@farnswood.snap.net.nz> <17030.32533.416687.524645@farnswood.snap.net.nz> <85k6m04y6f.fsf@lola.goethe.zz> <857ji0nly2.fsf@lola.goethe.zz> <874qcz8jxd.fsf-monnier+emacs@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1116627262 6531 80.91.229.2 (20 May 2005 22:14:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 22:14:22 +0000 (UTC) Cc: hober0@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 21 00:14:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DZFjm-0005zB-1R for ged-emacs-devel@m.gmane.org; Sat, 21 May 2005 00:12:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZFmh-0005v9-CM for ged-emacs-devel@m.gmane.org; Fri, 20 May 2005 18:15:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DZFjp-000590-Ip for emacs-devel@gnu.org; Fri, 20 May 2005 18:13:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DZFja-0004zO-Uh for emacs-devel@gnu.org; Fri, 20 May 2005 18:12:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZFjW-0004ts-Mo for emacs-devel@gnu.org; Fri, 20 May 2005 18:12:42 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DZFdo-0000zm-QU for emacs-devel@gnu.org; Fri, 20 May 2005 18:06:48 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DZFUX-0003wr-Cm; Fri, 20 May 2005 17:57:13 -0400 Original-To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Thu, 19 May 2005 10:44:27 -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:37411 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37411 Introduce font-lock-comment-keywords which would basically work like font-lock-keywords, except it's applied only to comments (with the buffer narrowed to just the comment so that comment-start-skip matches correctly, without needing font-lock-comment-start-skip). This way we could highlight all nested comments in SML, or we could highlight the "*" used on some continuation lines in some multiline C commenting styles, and people could set it to nil if they don't care about the feature, and major modes could add stuff to it, e.g. to highlight javadoc directives, ... It sounds like a good method. However, I agree that this should only be tried after the release. It would require additional work, customizing various modes to support it.