emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d8238df35a3: * lisp/progmodes/project.el (project-prompt-project-


From: Juri Linkov
Subject: master d8238df35a3: * lisp/progmodes/project.el (project-prompt-project-name): Fix order.
Date: Mon, 10 Jul 2023 13:43:53 -0400 (EDT)

branch: master
commit d8238df35a31cb9e065c2d243df77ce55735ed02
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * lisp/progmodes/project.el (project-prompt-project-name): Fix order.
    
    Reverse choices in this recently added new command to follow exactly
    the same order as in the old function 'project-prompt-project-dir'.
---
 lisp/progmodes/project.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 56c524bcab5..1d5a5fa5c63 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -1679,7 +1679,8 @@ It's also possible to enter an arbitrary directory not in 
the list."
             ret))
          ;; XXX: Just using this for the category (for the substring
          ;; completion style).
-         (table (project--file-completion-table (cons dir-choice choices)))
+         (table (project--file-completion-table
+                 (reverse (cons dir-choice choices))))
          (pr-name ""))
     (while (equal pr-name "")
       ;; If the user simply pressed RET, do this again until they don't.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]