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 08:34:04 -0500 Message-ID: References: <478FDC05.5020101@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0218306082==" X-Trace: ger.gmane.org 1200677340 9191 80.91.229.12 (18 Jan 2008 17:29:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2008 17:29:00 +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 18:29:18 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 1JFv1h-0004wQ-IP for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jan 2008 18:29:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFv1I-0001E0-AG for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jan 2008 12:28:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFrMj-0006Wh-Mg for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 08:34:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFrMe-0006TE-Ts for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 08:34:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFrMe-0006T9-Ll for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 08:34:32 -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 1JFrMd-0004X5-Co for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 08:34:32 -0500 In-Reply-To: <478FDC05.5020101@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 08:28:54 AM, Serialize complete at 01/18/2008 08:28:54 AM X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Mailman-Approved-At: Fri, 18 Jan 2008 12:28: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:50801 Archived-At: This is a multipart message in MIME format. --===============0218306082== Content-Type: multipart/alternative; boundary="=_alternative 004A87F3852573D4_=" This is a multipart message in MIME format. --=_alternative 004A87F3852573D4_= Content-Type: text/plain; charset="US-ASCII" "Lennart Borgman (gmail)" wrote on 01/17/2008 05:51:49 PM: | JRancier@penntraffic.com wrote: | > | > 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 | | | I am surprised that the first one works. Should it really do that? It does. Can you clue me into why is 'shouldn't' work? The interesting thing is that in lisp-mode and c-mode, it seems to always work fine ... ??? | | Perhaps you can use hi-lock-mode? --=_alternative 004A87F3852573D4_= Content-Type: text/html; charset="US-ASCII"
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> wrote on 01/17/2008 05:51:49 PM:

| JRancier@penntraffic.com wrote:
| >
| > 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
|
|
| I am surprised that the first one works. Should it really do that?


It does.  Can you clue me into why is 'shouldn't' work?  The interesting thing is that in lisp-mode and c-mode, it seems to always work fine ... ???

|
| Perhaps you can use hi-lock-mode?
--=_alternative 004A87F3852573D4_=-- --===============0218306082== 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 --===============0218306082==--