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 17:34:18 +0200 Message-ID: References: <6d2cb724-900e-4e8a-9145-8b271037c8e2@z24g2000yqb.googlegroups.com> <716a18f5-d4e2-4472-b7b0-ecd5cbedac5a@j39g2000yqh.googlegroups.com> <84db9f9d-c358-4e3d-ba1e-3b7e6cb764dc@m20g2000vbp.googlegroups.com> <478c9e51-d767-4567-ad01-9736599d1b61@g19g2000yqo.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00504502b1992f376b0475825040 X-Trace: ger.gmane.org 1255102515 16678 80.91.229.12 (9 Oct 2009 15:35:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Oct 2009 15:35:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 09 17:35:07 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 1MwHUo-0003Q7-Q0 for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Oct 2009 17:35:07 +0200 Original-Received: from localhost ([127.0.0.1]:33752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwHUo-00006l-6O for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Oct 2009 11:35:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwHU9-0008Sf-OR for help-gnu-emacs@gnu.org; Fri, 09 Oct 2009 11:34:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwHU4-0008Os-CC for help-gnu-emacs@gnu.org; Fri, 09 Oct 2009 11:34:24 -0400 Original-Received: from [199.232.76.173] (port=45716 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwHU4-0008Od-1a for help-gnu-emacs@gnu.org; Fri, 09 Oct 2009 11:34:20 -0400 Original-Received: from mail-pz0-f181.google.com ([209.85.222.181]:61470) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwHU3-0008Mq-Ls for help-gnu-emacs@gnu.org; Fri, 09 Oct 2009 11:34:19 -0400 Original-Received: by pzk11 with SMTP id 11so5212734pzk.14 for ; Fri, 09 Oct 2009 08:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:cc:content-type; bh=fAxdH8P4LYUW2/AZKINskRzev0gndavTtj/De/4+Gf4=; b=kMdDscv77tDT90iczwBsvrRFSwR5vyThjQ+bKEI8TVwrhFaBYeRlHA2EaX52bzGvdY dKy6yvVLkmqrpvnEIKZi+ikKtbiQvsQF1KEpdW/Dhh5eQvuRRfdqsXucBk/zeA91hppI z5g1RjjdaAA0fGawh1r5Q4PTvcFKmK9+zx6cU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; b=quR/E6gid/lZKEN4klD8ozqctWIABpZVtRabvVAlg4904t/QsWQJ7Upsc1BDpVo/wd wjSIYr+ZmF3k4S6rZaY63zPsbipjn3tLXhoO6hX++eqpTBoBpf2+zHQBu6fwobmPnvnm yHDwUXSKRqFsGknoP7IJ9PjJ+Kg1qYE6HFcb4= Original-Received: by 10.142.5.31 with SMTP id 31mr211482wfe.78.1255102458312; Fri, 09 Oct 2009 08:34:18 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:68797 Archived-At: --00504502b1992f376b0475825040 Content-Type: text/plain; charset=ISO-8859-1 Sorry the patch I posted only works for perl-mode Here a patch for cperl-mode (defvar cperl-compilation-error-regexp-alist-lanx-patch '( ;; 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) ) "Alist that specifies how to match errors in perl output.") (if (fboundp 'eval-after-load) (eval-after-load "mode-compile" '(setq perl-compilation-error-regexp-alist cperl-compilation-error-regexp-alist-lanx-patch))) --00504502b1992f376b0475825040 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sorry the patch I posted only works for perl-mode

Here a patch for c= perl-mode

(defvar cperl-compilation-error-regexp-alist-lanx-patch=A0 '(
=A0=A0=A0 ;; PERL 4
=A0=A0=A0 ("^[^\n]* in file \\([= ^ ]+\\) at line \\([0-9]+\\).*" 1 2)
=A0=A0=A0 ;; PERL 5=A0=A0 Blubber at FILE line XY, <XY> line ab.
= =A0=A0=A0 ("^[^\n]* at \\([^ ]+\\) line \\([0-9]+\\)," 1 2)
= =A0=A0=A0 ;; PERL 5=A0=A0 Blubber at FILE line XY.
=A0=A0=A0 ("^[^\= n]* at \\([^ ]+\\) line \\([0-9]+\\)." 1 2)
=A0=A0=A0 )
=A0 "Alist that specifies how to match errors in perl o= utput.")

(if (fboundp 'eval-after-load)
=A0=A0=A0 (eval-= after-load
=A0=A0=A0 "mode-compile"
=A0=A0=A0=A0=A0 '(s= etq perl-compilation-error-regexp-alist
=A0=A0=A0 =A0=A0=A0=A0 cperl-compilation-error-regexp-alist-lanx-patch)))

--00504502b1992f376b0475825040--