[Top][All Lists]

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

Re: Bug Report (Feature request?) etags (GNU Emacs 21.1)

From: Kim F. Storm
Subject: Re: Bug Report (Feature request?) etags (GNU Emacs 21.1)
Date: 18 Feb 2002 00:19:43 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50

address@hidden (Francesco Potorti`) writes:

>    When programming, I usually do not write my *.c files directly
>    --- snip ---
>    #line 1085 "test-homology.web"
>    --- snip ---
>    that etags should honour #line directives, or at least provide an
>    option to do so.
> Thanks for this suggestion.  Currently, etags does not intepret
> metainformation like this, apart form the #! on the first line, for
> cerating languages (currently, only Perl).  Do people on this list think
> that it would be wise for etags to intepret #line directives?

In most cases, it will probably be ok to do so.

However, if the original source file is not available, it would not
make sense to do so.  

In a few cases, files may have been autogenerated at some point in
time, but manually edited since - leaving some old #line directives in
the file.  But in this case, those #line directives doesn't make sense
(they would make a compiler output bogus error references), so in this
case the user should actually remove those lines.

So I would say: yes, let emacs handle #line - if the source file is
readable (and older than the current file) -- and if it is in a format
which is supported by etags.

Kim F. Storm  http://www.cua.dk

reply via email to

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