From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: JRancier@penntraffic.com Newsgroups: gmane.emacs.help Subject: Re: fontification question Date: Fri, 18 Jan 2008 15:23:24 -0500 Message-ID: References: <47910902.3090108@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1019227281==" X-Trace: ger.gmane.org 1200687839 13913 80.91.229.12 (18 Jan 2008 20:23:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2008 20:23:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 18 21:24:17 2008 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 1JFxlB-0006O5-FC for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jan 2008 21:24:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFxkm-0006wf-80 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jan 2008 15:23:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFxkP-0006tB-Tp for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 15:23:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFxkN-0006qX-PR for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 15:23:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFxkN-0006qB-Hn for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 15:23:27 -0500 Original-Received: from mail.penntraffic.com ([24.97.99.210] helo=smtp.penntraffic.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JFxkN-0002Oc-4B for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 15:23:27 -0500 In-Reply-To: <47910902.3090108@gmail.com> X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006 X-MIMETrack: Serialize by Router on PTC-SMTP/SERVERS/PTC(Release 7.0.2FP2|May 14, 2007) at 01/18/2008 03:17:49 PM, Serialize complete at 01/18/2008 03:17:49 PM X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) 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:50810 Archived-At: This is a multipart message in MIME format. --===============1019227281== Content-Type: multipart/alternative; boundary="=_alternative 0070020A852573D4_=" This is a multipart message in MIME format. --=_alternative 0070020A852573D4_= Content-Type: text/plain; charset="US-ASCII" "Lennart Borgman (gmail)" wrote on 01/18/2008 03:16:02 PM: | > That's quite alright, you have any idea why one works and the other | > doesn't? After playing around a bit, the two '*' in a row seem to cause | > it to fail? | | Fontification is quite tricky, especially the comments. It looks like a | bug too me. If you are using a recent Emacs then you should perhaps file | a bug report? Not a problem, as long as someone can verify my syntax is OK. Here's the snippet again: (setq font-lock-todo-face (make-face 'font-lock-todo-face)) (set-face-foreground 'font-lock-todo-face "Red") (set-face-background 'font-lock-todo-face "Yellow") (font-lock-add-keywords 'jde-mode '(("\\<\\(TODO:.*$\\)" 1 font-lock-todo-face prepend))) Jeff --=_alternative 0070020A852573D4_= Content-Type: text/html; charset="US-ASCII"
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> wrote on 01/18/2008 03:16:02 PM:

| > That's quite alright, you have any idea why one works and the other
| > doesn't?  After playing around a bit, the two '*' in a row seem to cause
| > it to fail?
|
| Fontification is quite tricky, especially the comments. It looks like a
| bug too me. If you are using a recent Emacs then you should perhaps file
| a bug report?

Not a problem, as long as someone can verify my syntax is OK.  Here's the snippet again:

(setq font-lock-todo-face (make-face 'font-lock-todo-face))
(set-face-foreground 'font-lock-todo-face "Red")
(set-face-background 'font-lock-todo-face "Yellow")

(font-lock-add-keywords 'jde-mode
                        '(("\\<\\(TODO:.*$\\)" 1 font-lock-todo-face prepend)))


Jeff --=_alternative 0070020A852573D4_=-- --===============1019227281== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1019227281==--