diff options
| author | Eli Zaretskii | 2022-06-10 10:06:06 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-06-10 10:06:06 +0300 |
| commit | 0705705ebf7d19e30b97b0fab508ffc7ec1bec69 (patch) | |
| tree | fe02ac7dea64ac0c544c0206baf0e3f45246b717 | |
| parent | 0ad8cd40ce74c354d6a81ba08e4c694c01baa00e (diff) | |
| download | emacs-0705705ebf7d19e30b97b0fab508ffc7ec1bec69.tar.gz emacs-0705705ebf7d19e30b97b0fab508ffc7ec1bec69.zip | |
Improve documentation of "etags -I"
* doc/man/etags.1:
* doc/emacs/maintaining.texi (Create Tags Table): Elaborate on the
importance of the '-I' option to 'etags'. (Bug#45246)
| -rw-r--r-- | doc/emacs/maintaining.texi | 7 | ||||
| -rw-r--r-- | doc/man/etags.1 | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 0a813a85d4f..c23907ddfbd 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi | |||
| @@ -2802,6 +2802,13 @@ place of a file name on the command line. @command{etags} will read from | |||
| 2802 | standard input and mark the produced tags as belonging to the file | 2802 | standard input and mark the produced tags as belonging to the file |
| 2803 | @var{file}. | 2803 | @var{file}. |
| 2804 | 2804 | ||
| 2805 | For C and C++, if the source files don't observe the GNU Coding | ||
| 2806 | Standards' convention if having braces (@samp{@{} and @samp{@}}) in | ||
| 2807 | column zero only for top-level definitions, like functions and | ||
| 2808 | @code{struct} definitions, we advise that you use the | ||
| 2809 | @samp{--ignore-indentation} option, to prevent @command{etags} from | ||
| 2810 | incorrectly interpreting closing braces in column zero. | ||
| 2811 | |||
| 2805 | @samp{etags --help} outputs the list of the languages @command{etags} | 2812 | @samp{etags --help} outputs the list of the languages @command{etags} |
| 2806 | knows, and the file name rules for guessing the language. It also prints | 2813 | knows, and the file name rules for guessing the language. It also prints |
| 2807 | a list of all the available @command{etags} options, together with a short | 2814 | a list of all the available @command{etags} options, together with a short |
diff --git a/doc/man/etags.1 b/doc/man/etags.1 index d345b8bd73f..96781569fc2 100644 --- a/doc/man/etags.1 +++ b/doc/man/etags.1 | |||
| @@ -122,7 +122,9 @@ current file. Only \fBetags\fP accepts this option. | |||
| 122 | .B \-I, \-\-ignore\-indentation | 122 | .B \-I, \-\-ignore\-indentation |
| 123 | Don't rely on indentation as much as we normally do. Currently, this | 123 | Don't rely on indentation as much as we normally do. Currently, this |
| 124 | means not to assume that a closing brace in the first column is the | 124 | means not to assume that a closing brace in the first column is the |
| 125 | final brace of a function or structure definition in C and C++. | 125 | final brace of a function or structure definition in C and C++. This |
| 126 | is important for code that doesn't observe the GNU Coding conventions | ||
| 127 | of placing only top-level braces in column zero. | ||
| 126 | .TP | 128 | .TP |
| 127 | \fB\-l\fP \fIlanguage\fP, \fB\-\-language=\fIlanguage\fP | 129 | \fB\-l\fP \fIlanguage\fP, \fB\-\-language=\fIlanguage\fP |
| 128 | Parse the following files according to the given language. More than | 130 | Parse the following files according to the given language. More than |