emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master ae78bda: Sort files in the default impl of project-


From: Dmitry Gutov
Subject: [Emacs-diffs] master ae78bda: Sort files in the default impl of project-files alphabetically
Date: Sun, 14 Apr 2019 17:40:15 -0400 (EDT)

branch: master
commit ae78bda5b88a912a1d2a4b62691dce3efa967047
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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).
---
 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 dabc4ab..b8a58ed 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -209,7 +209,8 @@ to find the list of ignores for each directory."
                                      (shell-quote-argument ")"))"")
                          )))
     (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)
   "Return LOCAL-FILES as if they were on the system of `default-directory'."



reply via email to

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