etags-regen--maybe-generate: No error when no project found

* lisp/progmodes/etags-regen.el (etags-regen--maybe-generate):
When no project found, abort cleanly with a message.
This commit is contained in:
Dmitry Gutov 2026-06-23 06:04:59 +03:00
parent 30fc250a26
commit b34952ee94

View file

@ -236,8 +236,9 @@ is used in buffers that have no alternative completion configured."
;; this mode, skip all functionality.
(not (or tags-file-name
tags-table-list))
(file-exists-p (etags-regen--choose-tags-file
(setq proj (project-current)))))
(prog1 (setq proj (project-current))
(unless proj (message "No project found")))
(file-exists-p (etags-regen--choose-tags-file proj)))
(message "Found existing tags table, refreshing...")
(etags-regen--refresh proj))
(when (and (not (or tags-file-name