This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Emacs and GFortran
- From: Bud Davis <bdavis9659 at sbcglobal dot net>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 30 Oct 2006 08:14:02 -0800 (PST)
- Subject: Re: Emacs and GFortran
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=05+IaMsn4SqcY72esiR2AvfblxAJhOeeDrj+AyrQu3GFilJH9p+P8IdGor8eRmydEjqFX/yikQNLBL/U4HMjuig5gUBTvA1gWCscs3ZaHvjgDZfEa6tuXvfEAWuJ56Ybpp46YgOYmVhCPHo6ky4zgORRrMUibHv703UUGFCoEW4= ;
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
>