mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-03 04:21:28 -08:00
Improve project name completion
* lisp/progmodes/project.el: (project-prompt-project-dir): Use REQUIRE-MATCH=t. Make sure the 'substring' completion style is used by default.
This commit is contained in:
parent
9f88356b67
commit
9422fb5e68
1 changed files with 6 additions and 2 deletions
|
|
@ -763,8 +763,12 @@ The project is chosen among projects known from the project list.
|
|||
It's also possible to enter an arbitrary directory."
|
||||
(project--ensure-read-project-list)
|
||||
(let* ((dir-choice "... (choose a dir)")
|
||||
(choices (append project--list `(,dir-choice)))
|
||||
(pr-dir (completing-read "Project: " choices)))
|
||||
(choices
|
||||
;; XXX: Just using this for the category (for the substring
|
||||
;; completion style).
|
||||
(project--file-completion-table
|
||||
(append project--list `(,dir-choice))))
|
||||
(pr-dir (completing-read "Project: " choices nil t)))
|
||||
(if (equal pr-dir dir-choice)
|
||||
(read-directory-name "Choose directory: " default-directory nil t)
|
||||
pr-dir)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue