unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [Johan Walles] perl-mode highlight breaks down on prototype
@ 2008-02-07 20:40 Michael Olson
  2008-02-07 21:20 ` Jonathan Rockway
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Olson @ 2008-02-07 20:40 UTC (permalink / raw)
  To: emacs-devel; +Cc: Johan Walles

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

I'm forwarding this to the emacs-devel mailing list (from the Ubuntu
bug-tracker) in hopes that someone can help to diagnose this problem.


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

From: Johan Walles <johan.walles@gmail.com>
To: mwolson@member.fsf.org
Subject: [Bug 189873] [NEW] perl-mode highlight breaks down on prototype
Date: Thu, 07 Feb 2008 10:29:40 -0000
Message-ID: <20080207102940.20947.59975.malonedeb@gangotri.ubuntu.com>

Public bug reported:

Binary package hint: emacs22-common

With emacs22-common 22.1-0ubuntu5.1, type the following in a perl-mode
buffer (but without the quotes):

"
#!/usr/bin/perl

sub searchCRS($$$$$$);
searchCRS("SELECT $cr_columns FROM CRS crs WHERE category=1 ORDER BY hours DESC, created;", 24, 0, 0, "(Co)|(UC)", "problem");

# Prio 2 list.
"

Note how the last comment is highlighted as string contents, not as a
comment.  Indentation and everything else thinks it's inside a string as
well.

Removing the "sub" line works around this.  Just commenting it out
doesn't help.

** Affects: emacs22 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
perl-mode highlight breaks down on prototype
https://bugs.launchpad.net/bugs/189873
You received this bug notification because you are a member of Ubuntu
Emacs Lisp, which is a bug contact for emacs22 in ubuntu.


[-- Attachment #3: Type: text/plain, Size: 238 bytes --]



-- 
|       Michael Olson  |  FSF Associate Member #652     |
| http://mwolson.org/  |  Hobbies: Lisp, HCoop          |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`-------------------------------------------------------'

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

* Re: [Johan Walles] perl-mode highlight breaks down on prototype
  2008-02-07 20:40 [Johan Walles] perl-mode highlight breaks down on prototype Michael Olson
@ 2008-02-07 21:20 ` Jonathan Rockway
  2008-02-07 22:02 ` Lennart Borgman (gmail)
  2008-02-08  2:18 ` Glenn Morris
  2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Rockway @ 2008-02-07 21:20 UTC (permalink / raw)
  To: Michael Olson; +Cc: Johan Walles, emacs-devel

* On Thu, Feb 07 2008, Michael Olson wrote:
> With emacs22-common 22.1-0ubuntu5.1, type the following in a perl-mode
> buffer (but without the quotes):

I took a look with perl-mode included with emacs 23.0.60.3 (unicode-2
from a week or two ago), and couldn't reproduce the problem.
Incidentally, on 22.1.1, I can reproduce the bug, but if I add a space
after the forward subroutine declaration, the syntax is recognized
correctly.  So I guess the bug is fixed in CVS, and can be easily worked
around in 22 if you can't upgrade.

My advice is to switch to cperl-mode, though.  It's much more accurate,
and highlights the example correctly in both 22 and 23.

Regards,
Jonathan Rockway




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

* Re: [Johan Walles] perl-mode highlight breaks down on prototype
  2008-02-07 20:40 [Johan Walles] perl-mode highlight breaks down on prototype Michael Olson
  2008-02-07 21:20 ` Jonathan Rockway
@ 2008-02-07 22:02 ` Lennart Borgman (gmail)
  2008-02-08  2:18 ` Glenn Morris
  2 siblings, 0 replies; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2008-02-07 22:02 UTC (permalink / raw)
  To: Michael Olson; +Cc: Johan Walles, emacs-devel

Michael Olson wrote:
> I'm forwarding this to the emacs-devel mailing list (from the Ubuntu
> bug-tracker) in hopes that someone can help to diagnose this problem.

I just tested with CVS Emacs from 2008-01-30. It looks ok there.

GNU Emacs 23.0.50.1 (i386-mingw-nt5.1.2600) of 2008-01-30

> ------------------------------------------------------------------------
> 
> Subject:
> [Bug 189873] [NEW] perl-mode highlight breaks down on prototype
> From:
> Johan Walles <johan.walles@gmail.com>
> Date:
> Thu, 07 Feb 2008 10:29:40 -0000
> To:
> mwolson@member.fsf.org
> 
> To:
> mwolson@member.fsf.org
> 
> 
> Public bug reported:
> 
> Binary package hint: emacs22-common
> 
> With emacs22-common 22.1-0ubuntu5.1, type the following in a perl-mode
> buffer (but without the quotes):
> 
> "
> #!/usr/bin/perl
> 
> sub searchCRS($$$$$$);
> searchCRS("SELECT $cr_columns FROM CRS crs WHERE category=1 ORDER BY hours DESC, created;", 24, 0, 0, "(Co)|(UC)", "problem");
> 
> # Prio 2 list.
> "
> 
> Note how the last comment is highlighted as string contents, not as a
> comment.  Indentation and everything else thinks it's inside a string as
> well.
> 
> Removing the "sub" line works around this.  Just commenting it out
> doesn't help.
> 
> ** Affects: emacs22 (Ubuntu)
>      Importance: Undecided
>          Status: New
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 




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

* Re: [Johan Walles] perl-mode highlight breaks down on prototype
  2008-02-07 20:40 [Johan Walles] perl-mode highlight breaks down on prototype Michael Olson
  2008-02-07 21:20 ` Jonathan Rockway
  2008-02-07 22:02 ` Lennart Borgman (gmail)
@ 2008-02-08  2:18 ` Glenn Morris
  2 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2008-02-08  2:18 UTC (permalink / raw)
  To: Michael Olson; +Cc: Johan Walles, emacs-devel

> With emacs22-common 22.1-0ubuntu5.1, type the following in a perl-mode
> buffer (but without the quotes):
>
> "
> #!/usr/bin/perl
>
> sub searchCRS($$$$$$);
> searchCRS("SELECT $cr_columns FROM CRS crs WHERE category=1 ORDER BY hours DESC, created;", 24, 0, 0, "(Co)|(UC)", "problem");
>
> # Prio 2 list.
> "
>
> Note how the last comment is highlighted as string contents, not as a
> comment.  Indentation and everything else thinks it's inside a string as
> well.

This seems to be already fixed in the EMACS_22_BASE branch.

The bug reporter may care to try the 22.1.90 pretest from
ftp://alpha.gnu.org/gnu/emacs/pretest/




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

end of thread, other threads:[~2008-02-08  2:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-07 20:40 [Johan Walles] perl-mode highlight breaks down on prototype Michael Olson
2008-02-07 21:20 ` Jonathan Rockway
2008-02-07 22:02 ` Lennart Borgman (gmail)
2008-02-08  2:18 ` Glenn Morris

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).