1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Fix project-prompt-project-name with (choose a dir)

* lisp/progmodes/project.el (project-prompt-project-name):
Use correct equality check (bug#79894).
This commit is contained in:
Dmitry Gutov 2025-11-27 12:26:55 +02:00
parent 26bd33c853
commit 702b16f999

View file

@ -2279,7 +2279,7 @@ If ALLOW-EMPTY is non-nil, it is possible to exit with no input."
while (and (not allow-empty) (equal pr-name "")))
(pcase pr-name
("" "")
('dir-choice (read-directory-name "Select directory: "
((pred (equal dir-choice)) (read-directory-name "Select directory: "
default-directory nil t))
(_ (let ((proj (assoc pr-name choices)))
(if (stringp proj) proj (project-root (cdr proj))))))))