Commit ae78bda5 authored by Dmitry Gutov's avatar Dmitry Gutov

Sort files in the default impl of project-files alphabetically

* lisp/progmodes/project.el (project--files-in-directory):
Sort the files alphabetically
(https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23179#296).
parent 05d53d88
Pipeline #1290 failed with stage
in 52 minutes and 13 seconds
...@@ -209,7 +209,8 @@ to find the list of ignores for each directory." ...@@ -209,7 +209,8 @@ to find the list of ignores for each directory."
(shell-quote-argument ")"))"") (shell-quote-argument ")"))"")
))) )))
(project--remote-file-names (project--remote-file-names
(split-string (shell-command-to-string command) "\0" t)))) (sort (split-string (shell-command-to-string command) "\0" t)
#'string<))))
(defun project--remote-file-names (local-files) (defun project--remote-file-names (local-files)
"Return LOCAL-FILES as if they were on the system of `default-directory'." "Return LOCAL-FILES as if they were on the system of `default-directory'."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment