bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#4304: marked as done (Font-lock in cperl-mode is broken)


From: Emacs bug Tracking System
Subject: bug#4304: marked as done (Font-lock in cperl-mode is broken)
Date: Sun, 13 Sep 2009 17:15:05 +0000

Your message dated Sun, 13 Sep 2009 13:11:24 -0400
with message-id <87vdjmwz0j.fsf@cyd.mit.edu>
and subject line Re: Font-lock in cperl-mode is broken
has caused the Emacs bug report #4304,
regarding Font-lock in cperl-mode is broken
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4304: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4304
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
--- Begin Message --- Subject: Font-lock in cperl-mode is broken Date: Tue, 1 Sep 2009 12:21:23 +0800
Package: emacs
Version: 23.0.50

In the newest Emacs HEAD source, font-lock in cperl-mode is broken.
Here are the steps to reproduce the problem:

1. Start emacs:

     $ emacs -Q

2. Visit an empty perl file and switch to cperl-mode:

     C-x C-f x.pl
     M-x cperl-mode

3. Type `print' (no any characters follow the character `t'):

     print|

   The vertical bar `|' here indicates the cursor.  Now the word
   `print' is highlighted with face `cperl-nonoverridable-face'.

4. Now that the cursor is after the character `t', type SPC to append
   a whitespace character.

     print |

   This time, the word `print' gets unhighlighted.  There is no
   property `face' for that word now:

     ;; Point is in between `print'.
     (text-properties-at (point))
          ==>  (fontified t)

   Appending more whitespace characters will not call the highlight
   back.  However, deleting all of the whitespace characters
   highlights it again.

     print |                         ;; Type DEL
     print|                          ;; `print' gets highlighted again

   And the face property is added back:

     ;; Point is in between `print'.
     (text-properties-at (point))
          ==>  (face cperl-nonoverridable-face font-lock-multiline t fontified t)

The same problem exists for larger Perl programs.  This is only a
simple case.

Regards,
Guanpeng Xu



check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages

--- End Message ---
--- Begin Message --- Subject: Re: Font-lock in cperl-mode is broken Date: Sun, 13 Sep 2009 13:11:24 -0400
> In the newest Emacs HEAD source, font-lock in cperl-mode is broken.

This was my mistake; I've checked in a fix.  Thanks.

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]