aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2024-12-15 00:16:10 -0700
committerPaul Eggert2024-12-15 00:16:10 -0700
commit856a58e28279139cfd6503917954fd75fcdd7e78 (patch)
tree25fe9b9b6410730f7530eabc610179a9b590c17f
parent4c68846223b91e50e4a15fbc59d2238605ce2a57 (diff)
downloademacs-856a58e28279139cfd6503917954fd75fcdd7e78.tar.gz
emacs-856a58e28279139cfd6503917954fd75fcdd7e78.zip
Update documentation of 'etags' regexps some more
* doc/emacs/maintaining.texi (Etags Regexps): * doc/man/etags.1: Give more details about what's not supported.
-rw-r--r--doc/emacs/maintaining.texi8
-rw-r--r--doc/man/etags.15
2 files changed, 10 insertions, 3 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index adda923af7c..bc7a47482a8 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -3094,8 +3094,12 @@ and all the C character escape sequences are supported: @samp{\a} for
3094bell, @samp{\b} for back space, @samp{\e} for escape, @samp{\f} for 3094bell, @samp{\b} for back space, @samp{\e} for escape, @samp{\f} for
3095formfeed, @samp{\n} for newline, @samp{\r} for carriage return, 3095formfeed, @samp{\n} for newline, @samp{\r} for carriage return,
3096@samp{\t} for tab, and @samp{\v} for vertical tab. In addition, 3096@samp{\t} for tab, and @samp{\v} for vertical tab. In addition,
3097@samp{\d} stands for the @code{DEL} character. Shy groups are not 3097@samp{\d} stands for the @code{DEL} character. Otherwise,
3098supported by @command{etags}. 3098the regular expression syntax is the same as Emacs
3099except that backslash escapes are the same
3100as GNU grep (which means, for example, that shy groups are not supported),
3101and @samp{[:ascii:]}, @samp{[:multibyte:]}, @samp{[:nonascii:]},
3102@samp{[:word:]}, and @samp{[:unibyte:]} are not supported.
3099 3103
3100 Ideally, @var{tagregexp} should not match more characters than are 3104 Ideally, @var{tagregexp} should not match more characters than are
3101needed to recognize what you want to tag. If the syntax requires you 3105needed to recognize what you want to tag. If the syntax requires you
diff --git a/doc/man/etags.1 b/doc/man/etags.1
index 12c2afc88b2..d26e2445e44 100644
--- a/doc/man/etags.1
+++ b/doc/man/etags.1
@@ -185,7 +185,10 @@ useless characters. If the match is such that more characters than
185needed are unavoidably matched by \fItagregexp\fP, it may be useful to 185needed are unavoidably matched by \fItagregexp\fP, it may be useful to
186add a \fInameregexp\fP, to narrow down the tag scope. \fBctags\fP 186add a \fInameregexp\fP, to narrow down the tag scope. \fBctags\fP
187ignores regexps without a \fInameregexp\fP. The syntax of regexps is 187ignores regexps without a \fInameregexp\fP. The syntax of regexps is
188the same as in emacs, except that shy groups are not supported. 188the same as in Emacs, except that backslash escapes are the same
189as GNU grep (which means, for example, that shy groups are not supported),
190and \fB[:ascii:]\fP, \fB[:multibyte:]\fP, \fB[:nonascii:]\fP,
191\fB[:word:]\fP, and \fB[:unibyte:]\fP are not supported.
189The following character escape sequences are supported: 192The following character escape sequences are supported:
190\\a, \\b, \\d, \\e, \\f, \\n, \\r, \\t, \\v, which respectively 193\\a, \\b, \\d, \\e, \\f, \\n, \\r, \\t, \\v, which respectively
191stand for the ASCII characters BEL, BS, DEL, ESC, FF, NL, CR, TAB, VT. 194stand for the ASCII characters BEL, BS, DEL, ESC, FF, NL, CR, TAB, VT.