Fix 'list-tags' when invoked from a non-file buffer
authorEli Zaretskii <eliz@gnu.org>
Fri, 4 Oct 2024 11:39:50 +0000 (14:39 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 4 Oct 2024 11:39:50 +0000 (14:39 +0300)
commite9dcf0c57ddea6a3ac3136e82cdb740326e735d4
treedc5b8fc51b8278a90e355e9c6393abd2202398cb
parent51ef05f684c779b492965571cf9a169b93e86aa0
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'.
doc/emacs/maintaining.texi
lisp/progmodes/etags.el