diff options
| author | Eli Zaretskii | 2016-01-15 10:54:03 +0200 |
|---|---|---|
| committer | Paul Eggert | 2016-03-21 17:05:55 -0700 |
| commit | a1f71da92dbcc90c230df719483527c07303be59 (patch) | |
| tree | 13f83b4b317ca286ad845134821b262fe71523e3 | |
| parent | 1e9a1229b170a4b3b0e0ab4fc228b2281b42ec25 (diff) | |
| download | emacs-a1f71da92dbcc90c230df719483527c07303be59.tar.gz emacs-a1f71da92dbcc90c230df719483527c07303be59.zip | |
Unhide the --no-line-directive option to 'etags'
* lib-src/etags.c (print_help): Un-undocument the --no-line-directive
option. (Bug#22306)
* doc/man/etags.1: Document the --no-line-directive option.
[This reapplies commit fee0526a189f43e8470d78e8374bd425890fbe6f,
which was inadvertently lost by merge commit
7823745acbe9b87eea2db4ef434e379fc903ec35.]
| -rw-r--r-- | doc/man/etags.1 | 12 | ||||
| -rw-r--r-- | lib-src/etags.c | 3 |
2 files changed, 10 insertions, 5 deletions
diff --git a/doc/man/etags.1 b/doc/man/etags.1 index d5fdc5f943a..83b970f906c 100644 --- a/doc/man/etags.1 +++ b/doc/man/etags.1 | |||
| @@ -17,7 +17,7 @@ etags, ctags \- generate tag file for Emacs, vi | |||
| 17 | [\|\-\-parse\-stdin=\fIfile\fP\|] | 17 | [\|\-\-parse\-stdin=\fIfile\fP\|] |
| 18 | .br | 18 | .br |
| 19 | [\|\-\-append\|] [\|\-\-no\-defines\|] [\|\-\-globals\|] | 19 | [\|\-\-append\|] [\|\-\-no\-defines\|] [\|\-\-globals\|] |
| 20 | [\|\-\-no\-globals\|] [\|\-\-include=\fIfile\fP\|] | 20 | [\|\-\-no\-globals\|] [\|\-\-no\-line\-directive\|] [\|\-\-include=\fIfile\fP\|] |
| 21 | [\|\-\-ignore\-indentation\|] [\|\-\-language=\fIlanguage\fP\|] | 21 | [\|\-\-ignore\-indentation\|] [\|\-\-language=\fIlanguage\fP\|] |
| 22 | [\|\-\-members\|] [\|\-\-no\-members\|] [\|\-\-output=\fItagfile\fP\|] | 22 | [\|\-\-members\|] [\|\-\-no\-members\|] [\|\-\-output=\fItagfile\fP\|] |
| 23 | [\|\-\-class\-qualify\|] | 23 | [\|\-\-class\-qualify\|] |
| @@ -31,8 +31,8 @@ etags, ctags \- generate tag file for Emacs, vi | |||
| 31 | [\|\-\-parse\-stdin=\fIfile\fP\|] | 31 | [\|\-\-parse\-stdin=\fIfile\fP\|] |
| 32 | .br | 32 | .br |
| 33 | [\|\-\-append\|] [\|\-\-backward\-search\|] | 33 | [\|\-\-append\|] [\|\-\-backward\-search\|] |
| 34 | [\|\-\-cxref\|] [\|\-\-no\-defines\|] | 34 | [\|\-\-cxref\|] [\|\-\-no\-defines\|] [\|\-\-globals\|] |
| 35 | [\|\-\-globals\|] [\|\-\-no\-globals\|] [\|\-\-ignore\-indentation\|] | 35 | [\|\-\-no\-globals\|] [\|\-\-no\-line\-directive\|] [\|\-\-ignore\-indentation\|] |
| 36 | [\|\-\-language=\fIlanguage\fP\|] [\|\-\-members\|] [\|\-\-no\-members\|] | 36 | [\|\-\-language=\fIlanguage\fP\|] [\|\-\-members\|] [\|\-\-no\-members\|] |
| 37 | [\|\-\-class\-qualify\|] | 37 | [\|\-\-class\-qualify\|] |
| 38 | [\|\-\-output=\fItagfile\fP\|] [\|\-\-regex=\fIregexp\fP\|] | 38 | [\|\-\-output=\fItagfile\fP\|] [\|\-\-regex=\fIregexp\fP\|] |
| @@ -105,6 +105,12 @@ the default in C and derived languages. | |||
| 105 | Do not tag global variables in C and derived languages. Typically this | 105 | Do not tag global variables in C and derived languages. Typically this |
| 106 | reduces the file size by one fourth. | 106 | reduces the file size by one fourth. |
| 107 | .TP | 107 | .TP |
| 108 | .B \-\-no\-line\-directive | ||
| 109 | Ignore \fB#line\fP preprocessor directives in C and derived languages. The | ||
| 110 | default is to honor those directives, and record the tags as if the | ||
| 111 | file scanned was the one named in the \fB#line\fP directive. This switch is | ||
| 112 | useful when the original file named by \fB#line\fP is no longer available. | ||
| 113 | .TP | ||
| 108 | \fB\-i\fP \fIfile\fP, \fB\-\-include=\fIfile\fP | 114 | \fB\-i\fP \fIfile\fP, \fB\-\-include=\fIfile\fP |
| 109 | Include a note in the tag file indicating that, when searching for a | 115 | Include a note in the tag file indicating that, when searching for a |
| 110 | tag, one should also consult the tags file \fIfile\fP after checking the | 116 | tag, one should also consult the tags file \fIfile\fP after checking the |
diff --git a/lib-src/etags.c b/lib-src/etags.c index a8221497393..01e230206ac 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -959,8 +959,7 @@ Relative ones are stored relative to the output file's directory.\n"); | |||
| 959 | Do not create tag entries for global variables in some\n\ | 959 | Do not create tag entries for global variables in some\n\ |
| 960 | languages. This makes the tags file smaller."); | 960 | languages. This makes the tags file smaller."); |
| 961 | 961 | ||
| 962 | if (PRINT_UNDOCUMENTED_OPTIONS_HELP) | 962 | puts ("--no-line-directive\n\ |
| 963 | puts ("--no-line-directive\n\ | ||
| 964 | Ignore #line preprocessor directives in C and derived languages."); | 963 | Ignore #line preprocessor directives in C and derived languages."); |
| 965 | 964 | ||
| 966 | if (CTAGS) | 965 | if (CTAGS) |