# HG changeset patch # User Francesco Potort # Date 1015328566 0 # Node ID 16affaf7292ba154293ae7d813da93c6ecf8304b # Parent 5cd450d9f4436135940c649aa44c3eea6eed9102 etags honours #line directives. diff -r 5cd450d9f443 -r 16affaf7292b etc/NEWS --- a/etc/NEWS Tue Mar 05 11:28:26 2002 +0000 +++ b/etc/NEWS Tue Mar 05 11:42:46 2002 +0000 @@ -214,7 +214,7 @@ that command. For example, if C-k is bound to kill-line, and kill-line is remapped -to new-kill-line, these commands now report: +to new-kill-line, these commands now report: - C-h c and C-h k C-k reports: C-k runs the command new-kill-line @@ -366,6 +366,11 @@ *** New language PHP: tags are functions, classes and defines. If the --members option is specified to etags, tags are vars also. +*** Honour #line directives. This is useful when dealing with C code +created from Yacc sources, or with any file created from Cweb source +files. When etags tags the generated file, it writes tags pointing to +the source file. + +++ ** The command line option --no-windows has been changed to --no-window-system. The old one still works, but is deprecated. diff -r 5cd450d9f443 -r 16affaf7292b etc/etags.1 --- a/etc/etags.1 Tue Mar 05 11:28:26 2002 +0000 +++ b/etc/etags.1 Tue Mar 05 11:42:46 2002 +0000 @@ -59,7 +59,9 @@ Files specified with relative file names will be recorded in the tag table with file names relative to the directory where the tag table resides. Files specified with absolute file names will be recorded -with absolute file names. +with absolute file names. Files generated from a source file\-\-like a C +file created by a source Yacc file\-\-will be recorded with the name of the +source file. The programs recognize the language used in an input file based on its file name and contents. The \fB\-\-language\fP switch can be used to force parsing of the file names following the switch according to the given diff -r 5cd450d9f443 -r 16affaf7292b man/maintaining.texi --- a/man/maintaining.texi Tue Mar 05 11:28:26 2002 +0000 +++ b/man/maintaining.texi Tue Mar 05 11:42:46 2002 +0000 @@ -179,8 +179,11 @@ conventional name for a tags table file is @file{TAGS}. Each entry in the tags table records the name of one tag, the name of the -file that the tag is defined in (implicitly), and the position in that file -of the tag's definition. +file that the tag is defined in (implicitly), and the position in that +file of the tag's definition. When a file parsed by @code{etags} is +created from a different source file, like a C file created by +@code{bison} from a source Yacc file, the tags of the parsed file +reference the source file. Just what names from the described files are recorded in the tags table depends on the programming language of the described file. They