[comp.lang.perl] Latest perldb.{pl,el} ...

ted@evi.com (Ted Stefanik) (02/26/91)

| From: stef@zweig.sun (Stephane Payrard)
| Subject: Re: Latest perldb.pl, as far as I know
| Date: 16 Feb 91 02:14:33 GMT

| Does anyone has extended perdb/perdb.el to position the
| point to the first syntax error? It would be cool.

If you place this in your .emacs file, it should allow you to use C-x` to find
perl generated errors.

Note: I got this by grabbing the compilation-error-regexp from compile.el in
GNU Emacs 18.55.3, and tacked on a third alternative which recognizes Perl's
error reporting syntax.

Buyer beware: I tested this, but don't claim it is fool-proof.

(load-library "compile")
(setq compilation-error-regexp
  "\\([^ :\n]+\\(: *\\|, line \\|(\\)[0-9]+\\)\\|\\([0-9]+ *of *[^ \n]+\\|[^ \n]+ at line [0-9]+\\)")