From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Re: font-lock-comment-delimiter-face Date: Sat, 14 May 2005 18:11:40 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116087861 5730 80.91.229.2 (14 May 2005 16:24:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 May 2005 16:24:21 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 14 18:24:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DWzQv-0001xL-PD for ged-emacs-devel@m.gmane.org; Sat, 14 May 2005 18:24:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWzSZ-0005CN-R8 for ged-emacs-devel@m.gmane.org; Sat, 14 May 2005 12:25:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DWzQD-0004OB-OW for emacs-devel@gnu.org; Sat, 14 May 2005 12:23:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DWzQ4-0004LX-Eu for emacs-devel@gnu.org; Sat, 14 May 2005 12:23:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWzQ4-0004Do-2i for emacs-devel@gnu.org; Sat, 14 May 2005 12:23:16 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DWzMX-0007nl-Bw for emacs-devel@gnu.org; Sat, 14 May 2005 12:19:37 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DWzEt-0000cA-OP for emacs-devel@gnu.org; Sat, 14 May 2005 18:11:43 +0200 Original-Received: from iwi190.iwi.uni-sb.de ([134.96.72.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 May 2005 18:11:43 +0200 Original-Received: from angeli by iwi190.iwi.uni-sb.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 May 2005 18:11:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: iwi190.iwi.uni-sb.de User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (berkeley-unix) Cancel-Lock: sha1:vSxWsj4LqsbhBz01d9F4Q19oAn8= 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:37135 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37135 * Richard Stallman (2005-05-11) writes: > 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. In Lisp mode it fails to apply `font-lock-comment-delimiter-face' to a single ";" as long as it is not located at the start of a line. The cause is probably that `comment-start-skip' in Lisp mode contains precautions for not matching escaped semicolons: (setq comment-start-skip "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *") It appears strange to me that `(looking-at comment-start-skip)' with this regexp returns t in case of multiple semicolons but nil in case of a single one. -- Ralf