From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: font-lock-comment-delimiter-face Date: Wed, 18 May 2005 19:22:58 -0400 Message-ID: <87wtpw86xd.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116459900 921 80.91.229.2 (18 May 2005 23:45:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 May 2005 23:45:00 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 19 01:44:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DYYCc-0001L1-6H for ged-emacs-devel@m.gmane.org; Thu, 19 May 2005 01:43:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYYF8-00068S-F9 for ged-emacs-devel@m.gmane.org; Wed, 18 May 2005 19:46:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DYXud-0005M7-GL for emacs-devel@gnu.org; Wed, 18 May 2005 19:25:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DYXuU-0005IY-Ij for emacs-devel@gnu.org; Wed, 18 May 2005 19:25:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYXuT-0005HO-F5 for emacs-devel@gnu.org; Wed, 18 May 2005 19:25:05 -0400 Original-Received: from [209.226.175.74] (helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DYY0X-0006vn-A0; Wed, 18 May 2005 19:31:21 -0400 Original-Received: from alfajor ([70.49.81.51]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050518232258.GWWZ8412.tomts20-srv.bellnexxia.net@alfajor>; Wed, 18 May 2005 19:22:58 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 379C8D7322; Wed, 18 May 2005 19:22:58 -0400 (EDT) Original-To: Ralf Angeli In-Reply-To: (Ralf Angeli's message of "Tue, 17 May 2005 09:30:30 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:37315 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37315 And to fix the bug with the single-semi-colon we now introduce yet-another-config-var that major modes have to set? So as long as major modes aren't adjusted to also set font-lock-comment-start-skip, users will see strange behaviors under some "unusual" circumstances (i.e. only on 8 color ttys, only for single-char comment starters)? While I'm here, I'll post yet-another-bug-report about this new feature: /*** test in c-mode ***/ ^^^^ ^^ The two ** preceding the closing comment marker don't get the comment-delimiter face. I'm sure I'll have bumped into yet-another by the time I get to post another message in this thread. I must say I'm baffled. Stefan PS: BTW, has anyone measured the slowdown cause by this new code? The call to looking-at should be negligible, but the call to looking-back could end up significant, although by default it won't make any visible difference unless you're one of the lucky ones running in an 8 color tty, so it's wasted effort.