unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4304: Font-lock in cperl-mode is broken
@ 2009-09-01  4:21 ` Herbert Euler
  2009-09-13 17:15   ` bug#4304: marked as done (Font-lock in cperl-mode is broken) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Herbert Euler @ 2009-09-01  4:21 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1600 bytes --]


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


_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/

[-- Attachment #2: Type: text/html, Size: 2608 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#4304: marked as done (Font-lock in cperl-mode is broken)
  2009-09-01  4:21 ` bug#4304: Font-lock in cperl-mode is broken Herbert Euler
@ 2009-09-13 17:15   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2009-09-13 17:15 UTC (permalink / raw)
  To: Chong Yidong

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

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

[-- Attachment #2: Type: message/rfc822, Size: 6957 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 1600 bytes --]


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


_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/

[-- Attachment #2.1.2: Type: text/html, Size: 2608 bytes --]

[-- Attachment #3: Type: message/rfc822, Size: 1176 bytes --]

From: Chong Yidong <cyd@stupidchicken.com>
To: Herbert Euler <herberteuler@hotmail.com>
Cc: 4304-done@emacsbugs.donarmstrong.com
Subject: Re: Font-lock in cperl-mode is broken
Date: Sun, 13 Sep 2009 13:11:24 -0400
Message-ID: <87vdjmwz0j.fsf@cyd.mit.edu>

> In the newest Emacs HEAD source, font-lock in cperl-mode is broken.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-13 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87vdjmwz0j.fsf@cyd.mit.edu>
2009-09-01  4:21 ` bug#4304: Font-lock in cperl-mode is broken Herbert Euler
2009-09-13 17:15   ` bug#4304: marked as done (Font-lock in cperl-mode is broken) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).