Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: [emacs] mode-compile with carp output buggy

by Erez (Priest)
on Aug 11, 2016 at 07:22 UTC ( #1169566=note: print w/replies, xml ) Need Help??


in reply to [emacs] mode-compile with carp output buggy

I just re-ran this entire thing and couldn't replicate. My setup is:

  • GNU Emacs 25.1.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.6
  • mode-compile-version is "2.29"
  • cperl-version is "6.2"

As for the mode-compile relevant section, it's here:>/p>

(defvar perl-compilation-error-regexp-alist ;; Contributed by Martin Jost '( ;; PERL 4 ("in file \\([^ ]+\\) at line \\([0-9]+\\).*" 1 2) ;; PERL 5 Blubber at FILE line XY, <XY> line ab. ("at \\([^ ]+\\) line \\([0-9]+\\)," 1 2) ;; PERL 5 Blubber at FILE line XY. ("at \\([^ ]+\\) line \\([0-9]+\\)." 1 2) ) ;; This look like a paranoiac regexp: could anybody find a better on +e? (which WORK). ;;'(("^[^\n]* \\(file\\|at\\) \\([^ \t\n]+\\) [^\n]*line \\([0-9]+\\ +)[\\.,]" 2 3)) "Alist that specifies how to match errors in perl output. See variable compilation-error-regexp-alist for more details.")

Mayhap all you need is to upgrade?

Principle of Least Astonishment: Any language that doesn’t occasionally surprise the novice will pay for it by continually surprising the expert

Replies are listed 'Best First'.
Re^2: [emacs] mode-compile with carp output buggy
by LanX (Archbishop) on Aug 11, 2016 at 09:25 UTC
    Thanks!

    The latest stable emacs release is 24.5. That's also the cygwin version I also tested.

    Did you check mode-compile-version with c-h v ? ( my el file says 2.29 too ) Otherwise I don't see where to get this version.

    The regexes you show shouldn't work, at least with perl-mode.

    I suspect my cperl-mode.el regexes are ignored because of of aliasing both modes (Perl-mode is default, cPerl-mode must be activated by start up)

    Will dig into it.

    As a side note emacs urgently needs test suites...

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      Did you check mode-compile-version with c-h v

      No, you're right, it does say "mode-compile.el,v 2.28"

      Principle of Least Astonishment: Any language that doesn’t occasionally surprise the novice will pay for it by continually surprising the expert

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1169566]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2019-11-15 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (80 votes). Check out past polls.

    Notices?