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: fontification question Date: Thu, 17 Jan 2008 15:14:17 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1743595821==" X-Trace: ger.gmane.org 1200607583 2480 80.91.229.12 (17 Jan 2008 22:06:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2008 22:06:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 17 23:06:40 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 1JFcsR-0001zu-NU for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2008 23:06:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFcs2-0007vQ-Sp for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2008 17:05:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFbWE-0007HD-PS for help-gnu-emacs@gnu.org; Thu, 17 Jan 2008 15:39:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFbWC-0007Gu-IJ for help-gnu-emacs@gnu.org; Thu, 17 Jan 2008 15:39:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFbWC-0007Gn-Ai for help-gnu-emacs@gnu.org; Thu, 17 Jan 2008 15:39:20 -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 1JFbWC-0002pu-0A for help-gnu-emacs@gnu.org; Thu, 17 Jan 2008 15:39:20 -0500 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/17/2008 03:33:42 PM, Serialize complete at 01/17/2008 03:33:42 PM X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Greylist: delayed 1498 seconds by postgrey-1.27 at monty-python; Thu, 17 Jan 2008 15:39:19 EST X-Mailman-Approved-At: Thu, 17 Jan 2008 17:05:23 -0500 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:50785 Archived-At: This is a multipart message in MIME format. --===============1743595821== Content-Type: multipart/alternative; boundary="=_alternative 006F2C5D852573D3_=" This is a multipart message in MIME format. --=_alternative 006F2C5D852573D3_= Content-Type: text/plain; charset="US-ASCII" Given the following code: (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))) Can anyone tell me why the following is correctly fontified (in jde-mode): /* * * TODO: REMOVE DEBUG STATEMENTS * */ And this isn't? /** 01-17-08 jbr * * TODO: REMOVE DEBUG STATEMENTS * */ TIA, Jeff --=_alternative 006F2C5D852573D3_= Content-Type: text/html; charset="US-ASCII"
Given the following code:

(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)))

Can anyone tell me why the following is correctly fontified (in jde-mode):

    /*
     *
     *  TODO: REMOVE DEBUG STATEMENTS
     *
     */

And this isn't?

    /** 01-17-08  jbr
     *
     *  TODO: REMOVE DEBUG STATEMENTS
     *
     */

TIA,
Jeff
--=_alternative 006F2C5D852573D3_=-- --===============1743595821== 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 --===============1743595821==--