diff options
| author | Eli Zaretskii | 2024-10-04 14:39:50 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-10-04 14:39:50 +0300 |
| commit | e9dcf0c57ddea6a3ac3136e82cdb740326e735d4 (patch) | |
| tree | dc5b8fc51b8278a90e355e9c6393abd2202398cb /doc | |
| parent | 51ef05f684c779b492965571cf9a169b93e86aa0 (diff) | |
| download | emacs-e9dcf0c57ddea6a3ac3136e82cdb740326e735d4.tar.gz emacs-e9dcf0c57ddea6a3ac3136e82cdb740326e735d4.zip | |
Fix 'list-tags' when invoked from a non-file buffer
This use case was broken by the improvement that attempts to
offer the current buffer's file name as the default file whose
tags to list.
* lisp/progmodes/etags.el
(tags--get-current-buffer-name-in-tags-file): Doc fix. Return nil
if no file is associated with the current buffer, and avoid
signaling an error if 'buffer-file-name' returns nil. (Bug#37611)
(list-tags): Doc fix. Signal an error if the user specifies no
file name at the prompt.
* doc/emacs/maintaining.texi (List Identifiers): Fix wording of
the documentation of 'list-tags'.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/maintaining.texi | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 3c34afbaa20..a632ffda4ab 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi | |||
| @@ -2664,14 +2664,13 @@ loaded, this command can use it to generate completion candidates. | |||
| 2664 | @xref{Symbol Completion}. | 2664 | @xref{Symbol Completion}. |
| 2665 | 2665 | ||
| 2666 | @findex list-tags | 2666 | @findex list-tags |
| 2667 | @kbd{M-x list-tags} reads the name of one of the files covered by | 2667 | @kbd{M-x list-tags} reads the name of one of the files covered by the |
| 2668 | the selected tags table, and displays a list of tags defined in that | 2668 | selected tags table, with completion, and displays the list of tags |
| 2669 | file. Do not include a directory as part of the file name unless the | 2669 | defined in that file; it offers the current buffer's file name as the |
| 2670 | file name recorded in the tags table includes a directory. This | 2670 | default file whose tags to list. Do not include a directory as part of |
| 2671 | command works only with the etags backend, and requires a tags table | 2671 | the file name unless the file name recorded in the tags table includes a |
| 2672 | for the project to be available. @xref{Tags Tables}. If used | 2672 | directory. This command works only with the etags backend, and requires |
| 2673 | interactively, the default tag is file name of the current buffer if | 2673 | a tags table for the project to be available. @xref{Tags Tables}. |
| 2674 | used interactively. | ||
| 2675 | 2674 | ||
| 2676 | @findex tags-next-file | 2675 | @findex tags-next-file |
| 2677 | @kbd{M-x tags-next-file} visits files covered by the selected tags table. | 2676 | @kbd{M-x tags-next-file} visits files covered by the selected tags table. |