[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9d2dcd1841: Merge from origin/emacs-28
From: |
Stefan Kangas |
Subject: |
master 9d2dcd1841: Merge from origin/emacs-28 |
Date: |
Fri, 25 Mar 2022 01:49:25 -0400 (EDT) |
branch: master
commit 9d2dcd184125320014aee9cfa5dd72ebab107778
Merge: b4fc5bedb8 d3d6f1c9bd
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Merge from origin/emacs-28
d3d6f1c9bd Clarify the description of "selected tags table"
---
doc/emacs/maintaining.texi | 34 ++++++++++++++++++++++------------
1 file changed, 22 insertions(+), 12 deletions(-)
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index edcc6075f7..37c348d54a 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -2992,11 +2992,12 @@ etags --language=none \
@findex visit-tags-table
Emacs has at any time at most one @dfn{selected} tags table. All
-the commands for working with tags tables use the selected one. To
-select a tags table, type @kbd{M-x visit-tags-table}, which reads the
-tags table file name as an argument, with @file{TAGS} defaulting to
-the first directory that contains a file named @file{TAGS} encountered
-when recursively searching upward from the default directory.
+the commands for working with tags tables use the selected one first.
+To select a tags table, type @kbd{M-x visit-tags-table}, which reads
+the tags table file name as an argument, with @file{TAGS} defaulting
+to the first directory that contains a file named @file{TAGS}
+encountered when recursively searching upward from the default
+directory.
@vindex tags-file-name
Emacs does not actually read in the tags table contents until you
@@ -3006,16 +3007,25 @@ variable's initial value is @code{nil}; that value
tells all the
commands for working with tags tables that they must ask for a tags
table file name to use.
- Using @code{visit-tags-table} when a tags table is already loaded
-gives you a choice: you can add the new tags table to the current list
-of tags tables, or start a new list. The tags commands use all the tags
-tables in the current list. If you start a new list, the new tags table
-is used @emph{instead} of others. If you add the new table to the
-current list, it is used @emph{as well as} the others.
+ In addition to the selected tags table, Emacs maintains the list of
+several tags tables that you use together. For example, if you are
+working on a program that uses a library, you may wish to have the
+tags tables of both the program and the library available, so that
+Emacs could easily find identifiers from both. If the selected tags
+table doesn't have the identifier or doesn't mention the source file a
+tags command needs, the command will try using all the other tags
+tables in the current list of tags tables.
+
+ Using @code{visit-tags-table} to load a new tags table when another
+tags table is already loaded gives you a choice: you can add the new
+tags table to the current list of tags tables, or discard the current
+list and start a new list. If you start a new list, the new tags
+table is used @emph{instead} of others. If you add the new table to
+the current list, it is used @emph{as well as} the others.
@vindex tags-table-list
You can specify a precise list of tags tables by setting the variable
-@code{tags-table-list} to a list of strings, like this:
+@code{tags-table-list} to a list of directory names, like this:
@c keep this on two lines for formatting in smallbook
@example