emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs and GFortran


From: Angelo Graziosi
Subject: Re: Emacs and GFortran
Date: Tue, 31 Oct 2006 09:32:10 +0100 (MET)

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 <filename>:<line>".
> Thus it should work with both compilers. (It probably predates the
> g95-gfortran split.)
> 
> Tobias
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]