Hi

You are right! Now that I was able to automate the testing I'm seeing clearer.

The bug is not present with emacs-24 -q but with emacs-27 -q

For the unwary, -q means that I don't load my personal config so that I can test vanilla emacs and not my own fixes, patches and cperl-modes.

What I forgot tho was explicitly switching to Ilya's cperl-mode, gnu-emacs is favorizing it's own perl-mode, which is much simpler and probably doesn't even try to handle y

Now running this (windows version)

c:\nonBKU\emacs-27.1-i686\bin>runemacs.exe -Q D:\tmp\pm\tst.pl -eval " +(progn (cperl-mode)(goto-line 4)(newline))" c:\nonBKU\emacs-27.1-i686\bin>

will show the bug and an error message

End of ‘y_ ... _’ string/RE not found: (scan-error Unbalanced parentheses 49 80)

That's the content of tst.pl:

#!/usr/bin/perl use strict; use warnings; sub y_max { 1 } print "Done";

Automated tests are cool! xD

update

> there's a patch which you should be able to use at least in Emacs 27.1.

it worked in 24.3 so something must have introduced the bug later.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery


In reply to Re^8: IDE for Perl programming? ( *cperl-mode* bug) by LanX
in thread IDE for Perl programming? by rsFalse

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.