]> git.eshelyaron.com Git - emacs.git/commitdiff
Document 'etags-regen-mode' in the Emacs user manual
authorEli Zaretskii <eliz@gnu.org>
Thu, 4 Jan 2024 09:34:21 +0000 (11:34 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 4 Jan 2024 21:16:18 +0000 (22:16 +0100)
* doc/emacs/maintaining.texi (Create Tags Table): Document
'etags-regen-mode'.

(cherry picked from commit ff00b85acf8371a358a055ef3e7325220bb6e362)

doc/emacs/maintaining.texi
etc/NEWS

index 8de9cf2c2f3171e9b6fa2ee0518b9f33dd4b6ab3..d3e06fa697b157e56fb83c346c66a5593539991e 100644 (file)
@@ -2683,7 +2683,7 @@ use tags, separate from the @command{etags} facility.
 
 @menu
 * Tag Syntax::          Tag syntax for various types of code and text files.
-* Create Tags Table::   Creating a tags table with @command{etags}.
+* Create Tags Table::   Creating and updating tags tables with @command{etags}.
 * Etags Regexps::       Create arbitrary tags using regular expressions.
 @end menu
 
@@ -2999,6 +2999,38 @@ explanation.  If followed by one or more @samp{--language=@var{lang}}
 options, it outputs detailed information about how tags are generated for
 @var{lang}.
 
+@findex etags-regen-mode
+  Instead of creating and updating the tags table by manually invoking
+@command{etags}, you can ask Emacs to do it for you automatically.
+The global minor mode @code{etags-regen-mode}, if enabled, generates
+tags tables automatically as needed, and takes care of updating them
+when you edit any of the source files that contribute tags.  This mode
+uses the current project configuration (@pxref{Projects}) to determine
+which files to submit to @command{etags} for regenerating the tags
+table for the project.  You can customize how this minor mode works
+using the following user options:
+
+@vtable @code
+@item etags-regen-program
+The program to regenerate tags table; defaults to @command{etags}.
+
+@item etags-regen-program-options
+Command-line options to pass to the program which regenerates tags
+tables.
+
+@item etags-regen-ignores
+List of glob patterns which specify files to ignore when regenerating
+tags tables.
+@end vtable
+
+@cindex tags-reset-tags-tables
+  If you select a tags table manually, with @kbd{M-x visit-tags-table}
+(@pxref{Select Tags Table}), @code{etags-regen-mode} effectively
+disables itself: it will no longer automatically create and update
+tags tables, assuming that you prefer managing your tags tables
+manually.  You can cancel this effect of using @code{visit-tags-table}
+by invoking the command @code{tags-reset-tags-tables}.
+
 @node Etags Regexps
 @subsubsection Etags Regexps
 
index 1065373cc9baffd38fe1cef6b5f1e7ce2e2da84e..5693158e8e8e76d545d633173109c6af016817d8 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1285,6 +1285,7 @@ the needs of users with red-green or blue-yellow color deficiency.
 The Info manual "(modus-themes) Top" describes the details and
 showcases all their customization options.
 
++++
 ** New global minor mode 'etags-regen-mode'.
 This minor mode generates the tags table automatically based on the
 current project configuration, and later updates it as you edit the