This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Emacs and GFortran


i think we should change.  it is not just emacs...vi
has a similar function (which i can never remember..)

this same 'bug' came up with g77 a couple of times.


--bud

--- Tobias Burnus <burnus@net-b.de> wrote:

> Hi,
> 
> Stefan Monnier wrote:
> >> hello.F:3:                                      
> <===
> >>     
> >
> > This is the error message using the standard GNU
> format
> > "<file>:<filenb>:<txt>".
> >   
> >>  In file hello.F:3
> >>     
> > This uses a gratuitously different format.  Please
> complain to the GFortran
> > authors about it.  Maybe they have a good reason
> for it, of course, in which
> > case we'd like to know about it.  But otherwise,
> they should change it to
> > follow GNU standards.
> >   
> 
> We currently use in error.c (show_locus):
>      error_printf ("In file %s:%d\n", f->filename,
> Thus we would need to change this to
>      error_printf ("%s:%d:\n", f->filename,
> 
> We currently print:
> ------------------------------------
> In file hello.F:3
> 
> write(*,) 'Hello!'
>       1
> Error: Syntax error in WRITE statement at (1)
> ------------------------------------
> and then
> ------------------------------------
> hello.F:3:
> 
> write(*,) 'Hello!'
>       1
> Error: Syntax error in WRITE statement at (1)
> ------------------------------------
> 
> Should we do this change to make Emacs happy?
> 
> 
> By the way, g95 has the same problem.
> 
> Tobias
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]