From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.comp.gcc.fortran,gmane.emacs.devel Subject: Re: Emacs and GFortran Date: Tue, 31 Oct 2006 09:32:10 +0100 (MET) Message-ID: References: <45466804.4050608@net-b.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1162283560 30699 80.91.229.2 (31 Oct 2006 08:32:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2006 08:32:40 +0000 (UTC) Cc: fortran@gcc.gnu.org, emacs-devel@gnu.org Original-X-From: fortran-return-15343-gcgf-fortran=m.gmane.org@gcc.gnu.org Tue Oct 31 09:32:38 2006 Return-path: Envelope-to: gcgf-fortran@gmane.org Original-Received: from sourceware.org ([209.132.176.174]) by ciao.gmane.org with smtp (Exim 4.43) id 1Gep2j-0005a4-RV for gcgf-fortran@gmane.org; Tue, 31 Oct 2006 09:32:23 +0100 Original-Received: (qmail 1690 invoked by alias); 31 Oct 2006 08:32:19 -0000 Original-Received: (qmail 1682 invoked by uid 22791); 31 Oct 2006 08:32:19 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Original-Received: from postino1.roma1.infn.it (HELO postino1.roma1.infn.it) (141.108.26.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 31 Oct 2006 08:32:15 +0000 Original-Received: from ax0rm1.roma1.infn.it (ax0rm1.roma1.infn.it [141.108.26.19]) by postino1.roma1.infn.it (8.12.11/8.12.11) with ESMTP id k9V8WAJ7015807; Tue, 31 Oct 2006 09:32:10 +0100 Original-Received: from localhost (graziosi@localhost) by ax0rm1.roma1.infn.it (8.9.3/8.9.3) with ESMTP id JAA00540; Tue, 31 Oct 2006 09:32:10 +0100 (MET) Original-To: Tobias Burnus In-Reply-To: <45466804.4050608@net-b.de> X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.0.3.2, Antispam-Data: 2006.10.30.233433 X-PerlMx-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Post: List-Help: , Original-Sender: fortran-owner@gcc.gnu.org Xref: news.gmane.org gmane.comp.gcc.fortran:15313 gmane.emacs.devel:61466 Archived-At: The only difference between G95 and GFortran is a blank space at (***): ---------------------------------------------------------- $ g95 hello.F In file hello.F:3 (***) write(*,) 'Hello!' 1 Error: Syntax error in WRITE statement at (1) $ gfc hello.F In file hello.F:3 (***) write(*,) 'Hello!' 1 Error: Syntax error in WRITE statement at (1) ----------------------------------------------------------- So is there a way to adjust .emacs? Angelo. On Mon, 30 Oct 2006, Tobias Burnus wrote: > Hi, > > Angelo Graziosi wrote: > >> By the way, g95 has the same problem. > >> > > > > Adding > > > > (eval-after-load "compile" > > '(setq compilation-error-regexp-alist > > (cons '("^In file \\(.+\\):\\([0-9]+\\)" 1 2) > > compilation-error-regexp-alist))) > > > > in .emacs solves it. > > > > > > So, is there something similar for GFortran ? > > > Doesn't this work for gfortran? I think the output is the same: > "In file :". > Thus it should work with both compilers. (It probably predates the > g95-gfortran split.) > > Tobias >