mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
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:
parent
30fc250a26
commit
b34952ee94
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue