244 |
@item |
@item |
245 |
In La@TeX{} text, the argument of any of the commands @code{\chapter}, |
In La@TeX{} text, the argument of any of the commands @code{\chapter}, |
246 |
@code{\section}, @code{\subsection}, @code{\subsubsection}, |
@code{\section}, @code{\subsection}, @code{\subsubsection}, |
247 |
@code{\eqno}, @code{\label}, @code{\ref}, @code{\cite}, @code{\bibitem}, |
@code{\eqno}, @code{\label}, @code{\ref}, @code{\cite}, |
248 |
@code{\part}, @code{\appendix}, @code{\entry}, or @code{\index}, is a |
@code{\bibitem}, @code{\part}, @code{\appendix}, @code{\entry}, |
249 |
tag.@refill |
@code{\index}, @code{\def}, @code{\newcomand}, @code{\renewcommand}, |
250 |
|
@code{\newenvironment} or @code{\renewenvironment} is a tag.@refill |
251 |
|
|
252 |
Other commands can make tags as well, if you specify them in the |
Other commands can make tags as well, if you specify them in the |
253 |
environment variable @env{TEXTAGS} before invoking @code{etags}. The |
environment variable @env{TEXTAGS} before invoking @code{etags}. The |
255 |
command names. For example, |
command names. For example, |
256 |
|
|
257 |
@example |
@example |
258 |
TEXTAGS="def:newcommand:newenvironment" |
TEXTAGS="mycommand:myothercommand" |
259 |
export TEXTAGS |
export TEXTAGS |
260 |
@end example |
@end example |
261 |
|
|
262 |
@noindent |
@noindent |
263 |
specifies (using Bourne shell syntax) that the commands @samp{\def}, |
specifies (using Bourne shell syntax) that the commands |
264 |
@samp{\newcommand} and @samp{\newenvironment} also define tags. |
@samp{\mycommand} and @samp{\myothercommand} also define tags. |
265 |
|
|
266 |
@item |
@item |
267 |
In Lisp code, any function defined with @code{defun}, any variable |
In Lisp code, any function defined with @code{defun}, any variable |
457 |
entirely; then @code{etags} recognizes tags by regexp matching alone |
entirely; then @code{etags} recognizes tags by regexp matching alone |
458 |
(@pxref{Etags Regexps}). |
(@pxref{Etags Regexps}). |
459 |
|
|
460 |
|
The option @samp{--parse-stdin=@var{file}} is mostly useful when |
461 |
|
calling @code{etags} from programs. It can be used (only once) in |
462 |
|
place of a file name on the command line. @code{Etags} will read from |
463 |
|
standard input and mark the produced tags as belonging to the file |
464 |
|
@var{file}. |
465 |
|
|
466 |
@samp{etags --help} prints the list of the languages @code{etags} |
@samp{etags --help} prints the list of the languages @code{etags} |
467 |
knows, and the file name rules for guessing the language. It also prints |
knows, and the file name rules for guessing the language. It also prints |
468 |
a list of all the available @code{etags} options, together with a short |
a list of all the available @code{etags} options, together with a short |