]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/project.el (project-prompt-project-name): Add 'reverse'.
authorJuri Linkov <juri@linkov.net>
Mon, 27 Nov 2023 17:09:49 +0000 (19:09 +0200)
committerJuri Linkov <juri@linkov.net>
Mon, 27 Nov 2023 17:09:49 +0000 (19:09 +0200)
Reverse ret that should restore order for 'C-x p p M-n M-n ...' (bug#67310).

lisp/progmodes/project.el

index f7f057396e13784dabc7c7b33d627ad3fa2b00d2..a81bb63fba47d998128f79a8608e595e99746ada 100644 (file)
@@ -1808,7 +1808,7 @@ It's also possible to enter an arbitrary directory not in the list."
                          (name (project-name proj)))
                 (push name project--name-history)
                 (push (cons name proj) ret)))
-            ret))
+            (reverse ret)))
          ;; XXX: Just using this for the category (for the substring
          ;; completion style).
          (table (project--file-completion-table