From unknown Tue Jun 17 20:19:07 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#4304 <4304@debbugs.gnu.org> To: bug#4304 <4304@debbugs.gnu.org> Subject: Status: Font-lock in cperl-mode is broken Reply-To: bug#4304 <4304@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:19:07 +0000 retitle 4304 Font-lock in cperl-mode is broken reassign 4304 emacs submitter 4304 Herbert Euler severity 4304 normal thanks From herberteuler@hotmail.com Mon Aug 31 21:21:32 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Sep 2009 04:21:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,FOURLA,HAS_PACKAGE, MULTALT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n814LUFA021195 for ; Mon, 31 Aug 2009 21:21:31 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiKs5-0002tS-TF for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2009 00:21:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiKs1-0002rT-DU for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2009 00:21:29 -0400 Received: from [199.232.76.173] (port=57296 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiKs1-0002rO-1t for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2009 00:21:25 -0400 Received: from bay0-omc2-s14.bay0.hotmail.com ([65.54.246.150]:58314) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiKs0-0006uB-M0 for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2009 00:21:24 -0400 Received: from BAY143-W18 ([65.55.154.53]) by bay0-omc2-s14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 31 Aug 2009 21:21:23 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_373ff263-bf63-4cd9-af42-1ee982989aa5_" X-Originating-IP: [124.127.101.0] From: Herbert Euler To: Subject: Font-lock in cperl-mode is broken Date: Tue, 1 Sep 2009 12:21:23 +0800 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 01 Sep 2009 04:21:23.0667 (UTC) FILETIME=[AA3A2A30:01CA2ABB] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ --_373ff263-bf63-4cd9-af42-1ee982989aa5_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Package: emacs Version: 23.0.50 In the newest Emacs HEAD source=2C 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'=2C type SPC to append a whitespace character. print | This time=2C the word `print' gets unhighlighted. There is no property `face' for that word now: =3B=3B Point is in between `print'. (text-properties-at (point)) =3D=3D> (fontified t) Appending more whitespace characters will not call the highlight back. However=2C deleting all of the whitespace characters highlights it again. print | =3B=3B Type DEL print| =3B=3B `print' gets highlighted again And the face property is added back: =3B=3B Point is in between `print'. (text-properties-at (point)) =3D=3D> (face cperl-nonoverridable-face font-lock-multiline t fo= ntified t) The same problem exists for larger Perl programs. This is only a simple case. Regards=2C Guanpeng Xu _________________________________________________________________ More than messages=96check out the rest of the Windows Live=99. http://www.microsoft.com/windows/windowslive/= --_373ff263-bf63-4cd9-af42-1ee982989aa5_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Package: emacs
Version: 23.0.50

In the newest Emacs HEAD source= =2C font-lock in cperl-mode is broken.
Here are the steps to reproduce t= he problem:

1. Start emacs:

 =3B =3B =3B =3B = $ emacs -Q

2. Visit an empty perl file and switch to cperl-mode:
=
 =3B =3B =3B =3B C-x C-f x.pl
 =3B =3B = =3B =3B M-x cperl-mode

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

 =3B =3B =3B =3B print|

=  =3B =3B The vertical bar `|' here indicates the cursor. =3B No= w the word
 =3B =3B `print' is highlighted with face `cperl-nono= verridable-face'.

4. Now that the cursor is after the character `t'= =2C type SPC to append
 =3B =3B a whitespace character.

&= nbsp=3B =3B =3B =3B print |

 =3B =3B This time= =2C the word `print' gets unhighlighted. =3B There is no
 =3B&nb= sp=3B property `face' for that word now:

 =3B =3B =3B&nb= sp=3B =3B=3B Point is in between `print'.
 =3B =3B =3B = =3B (text-properties-at (point))
 =3B =3B =3B =3B = =3B =3B =3B =3B =3B =3D=3D>=3B =3B (fontified t)
<= br> =3B =3B Appending more whitespace characters will not call the = highlight
 =3B =3B back. =3B However=2C deleting all of the = whitespace characters
 =3B =3B highlights it again.

 = =3B =3B =3B =3B print | =3B =3B =3B =3B =3B=  =3B =3B =3B =3B =3B =3B =3B =3B =3B&nb= sp=3B =3B =3B =3B =3B =3B =3B =3B =3B = =3B =3B=3B Type DEL
 =3B =3B =3B =3B print| =3B = =3B =3B =3B =3B =3B =3B =3B =3B =3B =3B=  =3B =3B =3B =3B =3B =3B =3B =3B =3B&nb= sp=3B =3B =3B =3B =3B =3B=3B `print' gets highlighted again=

 =3B =3B And the face property is added back:

 = =3B =3B =3B =3B =3B=3B Point is in between `print'.
 =3B=  =3B =3B =3B (text-properties-at (point))
 =3B =3B&n= bsp=3B =3B =3B =3B =3B =3B =3B =3D=3D>=3B =3B= (face cperl-nonoverridable-face font-lock-multiline t fontified t)

= The same problem exists for larger Perl programs. =3B This is only asimple case.

Regards=2C
Guanpeng Xu



check out= the rest of the Windows Live=99. More than mail=96Windows Live=99 goes way beyond your inbox. = More than messages = --_373ff263-bf63-4cd9-af42-1ee982989aa5_-- From cyd@stupidchicken.com Sun Sep 13 10:09:59 2009 Received: (at 4304-done) by emacsbugs.donarmstrong.com; 13 Sep 2009 17:09:59 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.5 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8DH9vIm027963 for <4304-done@emacsbugs.donarmstrong.com>; Sun, 13 Sep 2009 10:09:59 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 4DCB557E26C; Sun, 13 Sep 2009 13:11:24 -0400 (EDT) From: Chong Yidong To: Herbert Euler Cc: 4304-done@debbugs.gnu.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > In the newest Emacs HEAD source, font-lock in cperl-mode is broken. This was my mistake; I've checked in a fix. Thanks. From unknown Tue Jun 17 20:19:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 12 Oct 2009 14:24:12 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator