From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages Date: Fri, 9 Oct 2009 05:56:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <478c9e51-d767-4567-ad01-9736599d1b61@g19g2000yqo.googlegroups.com> References: <6d2cb724-900e-4e8a-9145-8b271037c8e2@z24g2000yqb.googlegroups.com> <271a1a36-c8db-414a-a329-72a903207334@c3g2000yqd.googlegroups.com> <1544A0C5-7D0B-4B56-BC70-C8684173706A@Web.DE> <5397B484-241E-4DF2-AA2C-F2AA26C464E0@web.de> <716a18f5-d4e2-4472-b7b0-ecd5cbedac5a@j39g2000yqh.googlegroups.com> <84db9f9d-c358-4e3d-ba1e-3b7e6cb764dc@m20g2000vbp.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255095670 24789 80.91.229.12 (9 Oct 2009 13:41:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Oct 2009 13:41:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 09 15:41:01 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MwFiG-00071m-Fs for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Oct 2009 15:40:52 +0200 Original-Received: from localhost ([127.0.0.1]:54156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwFiF-0005fb-RU for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Oct 2009 09:40:51 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!g19g2000yqo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 66 Original-NNTP-Posting-Host: 94.219.214.131 Original-X-Trace: posting.google.com 1255093012 14424 127.0.0.1 (9 Oct 2009 12:56:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 9 Oct 2009 12:56:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g19g2000yqo.googlegroups.com; posting-host=94.219.214.131; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.14) Gecko/2009090216 Ubuntu/8.10 (intrepid) Firefox/3.0.14, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173693 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68789 Archived-At: Hi I found a workaround by extending the regexes to match the whole line! Changing in mode-compile.el from ------------------------------------------------ (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, 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 one? (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.") ------------------------------------------------ to ------------------------------------------------ (defvar perl-compilation-error-regexp-alist ;; Contributed by Martin Jost '( ;; PERL 4 ("^[^\n]* in file \\([^ ]+\\) at line \\([0-9]+\\).*" 1 2) ;; PERL 5 Blubber at FILE line XY, line ab. ("^[^\n]* at \\([^ ]+\\) line \\([0-9]+\\)," 1 2) ;; PERL 5 Blubber at FILE line XY. ("^[^\n]* at \\([^ ]+\\) line \\([0-9]+\\)." 1 2) ) ;; This look like a paranoiac regexp: could anybody find a better one? (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.") =0C------------------------------------------------ fixes the problem in emacs 23! 8) (Plz note: the WHOLE error line gets underlined now) Have there been changes to compile.el??? (I'm not sure if this problem might be caused by the German localization of my Ubuntu installation since I had encoding problems in the past. But I never changed the default settings . In mode-compile.el I occasionally see `^L=B4 between paragraphs... ) Anyway I will send a bug report and mail to the authors of mode- compile.el and compile.el. Cheers Rolf