Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!elroy.jpl.nasa.gov!decwrl!mcnc!uvaarpa!mmdf From: ted@evi.com (Ted Stefanik) Newsgroups: comp.lang.perl Subject: Re: Latest perldb.{pl,el} ... (Compilation error marking) Message-ID: <1991Feb25.203745.26049@uvaarpa.Virginia.EDU> Date: 25 Feb 91 20:37:45 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: ted@evi.com (Ted Stefanik) Organization: The Internet Lines: 19 | 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]+\\)")