From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.devel Subject: perl compilation error regexp [patch] Date: Sat, 29 Dec 2007 11:09:40 +1100 Message-ID: <87zlvufjjv.fsf@blah.blah> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1198887029 15275 80.91.229.12 (29 Dec 2007 00:10:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2007 00:10:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 29 01:10:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J8PHi-0006Hu-CV for ged-emacs-devel@m.gmane.org; Sat, 29 Dec 2007 01:10:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8PHM-0002NS-LT for ged-emacs-devel@m.gmane.org; Fri, 28 Dec 2007 19:10:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J8PHI-0002L1-QC for emacs-devel@gnu.org; Fri, 28 Dec 2007 19:10:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J8PHG-0002I3-Jc for emacs-devel@gnu.org; Fri, 28 Dec 2007 19:10:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8PHG-0002Hu-Gy for emacs-devel@gnu.org; Fri, 28 Dec 2007 19:10:10 -0500 Original-Received: from mailout2-2.pacific.net.au ([61.8.2.225] helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J8PHF-0003Sw-O9 for emacs-devel@gnu.org; Fri, 28 Dec 2007 19:10:10 -0500 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id EB2948C14E for ; Sat, 29 Dec 2007 11:09:41 +1100 (EST) Original-Received: from blah.blah (ppp2DDC.dyn.pacific.net.au [61.8.45.220]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 527378C07 for ; Sat, 29 Dec 2007 11:10:03 +1100 (EST) Original-Received: from gg by blah.blah with local (Exim 4.68) (envelope-from ) id 1J8PGn-0001j4-TN for emacs-devel@gnu.org; Sat, 29 Dec 2007 11:09:42 +1100 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85577 Archived-At: --=-=-= Perl can add a "during global destruction" to its error message output in certain circumstances, eg. foo.pl below (in cleanup) something bad at foo.pl line 3 during global destruction. It'd be nice for compilation-mode to recognise that: 2007-12-28 Kevin Ryde * progmodes/compile.el (compilation-error-regexp-alist-alist): For perl, allow "during global destruction" at end. This comes out under "use warnings" in recent perl when breaking circular references during program or thread exit. * compilation.txt (perl): Add a "during global destruction" sample. --=-=-= Content-Type: text/x-perl Content-Disposition: attachment; filename=foo.pl #!/usr/bin/perl use warnings; sub DESTROY { die "something bad"; } my $x; $x = bless {x=>\$x}, 'main'; exit 0; --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=compile.el.perl-glob.diff *** compile.el 29 Dec 2007 10:35:49 +1100 1.448 --- compile.el 29 Dec 2007 10:36:06 +1100 *************** *** 281,287 **** 3 1 2) (perl ! " at \\([^ \n]+\\) line \\([0-9]+\\)\\(?:[,.]\\|$\\)" 1 2) (rxp "^\\(?:Error\\|Warnin\\(g\\)\\):.*\n.* line \\([0-9]+\\) char\ --- 281,287 ---- 3 1 2) (perl ! " at \\([^ \n]+\\) line \\([0-9]+\\)\\(?:[,.]\\|$\\| during global destruction\\.$\\)" 1 2) (rxp "^\\(?:Error\\|Warnin\\(g\\)\\):.*\n.* line \\([0-9]+\\) char\ --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=compilation.txt.perl-glob.diff *** compilation.txt 29 Dec 2007 10:41:30 +1100 1.17 --- compilation.txt 29 Dec 2007 10:49:59 +1100 *************** *** 287,292 **** --- 287,293 ---- syntax error at automake line 922, near "':'" Died at test.pl line 27. store::odrecall('File_A', 'x2') called at store.pm line 90 + (in cleanup) something bad at foo.pl line 3 during global destruction. * RXP --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--