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 14:57:34 -0500 Message-ID: References: <4790FF74.3050601@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0260339026==" X-Trace: ger.gmane.org 1200686287 8380 80.91.229.12 (18 Jan 2008 19:58:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2008 19:58:07 +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 20:58:25 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 1JFxM8-0004ST-B6 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jan 2008 20:58:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFxLj-0006Y4-A8 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jan 2008 14:57:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFxLR-0006Xp-U4 for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 14:57:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFxLP-0006WR-91 for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 14:57:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFxLP-0006WO-3t for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 14:57:39 -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 1JFxLO-0003vw-Kq for help-gnu-emacs@gnu.org; Fri, 18 Jan 2008 14:57:38 -0500 In-Reply-To: <4790FF74.3050601@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 02:52:01 PM, Serialize complete at 01/18/2008 02:52:01 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:50808 Archived-At: This is a multipart message in MIME format. --===============0260339026== Content-Type: multipart/alternative; boundary="=_alternative 006DA487852573D4_=" This is a multipart message in MIME format. --=_alternative 006DA487852573D4_= Content-Type: text/plain; charset="US-ASCII" "Lennart Borgman (gmail)" wrote on 01/18/2008 02:35:16 PM: | JRancier@penntraffic.com wrote: | > | > "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 ... ??? | | | I must have done something stupid, please ignore my answer. 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? --=_alternative 006DA487852573D4_= Content-Type: text/html; charset="US-ASCII"
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> wrote on 01/18/2008 02:35:16 PM:

| JRancier@penntraffic.com wrote:
| >
| > "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 ... ???
|
|
| I must have done something stupid, please ignore my answer.

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? --=_alternative 006DA487852573D4_=-- --===============0260339026== 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 --===============0260339026==--