diff options
| author | Dmitry Gutov | 2019-04-15 00:39:29 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2019-04-15 00:39:57 +0300 |
| commit | ae78bda5b88a912a1d2a4b62691dce3efa967047 (patch) | |
| tree | ae100a0479908fb59288082fcbc16693b038ac6e | |
| parent | 05d53d88865d0287412c0f52a421cbf96a4d425d (diff) | |
| download | emacs-ae78bda5b88a912a1d2a4b62691dce3efa967047.tar.gz emacs-ae78bda5b88a912a1d2a4b62691dce3efa967047.zip | |
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).
| -rw-r--r-- | lisp/progmodes/project.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index dabc4ab6b45..b8a58ed317b 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el | |||
| @@ -209,7 +209,8 @@ to find the list of ignores for each directory." | |||
| 209 | (shell-quote-argument ")"))"") | 209 | (shell-quote-argument ")"))"") |
| 210 | ))) | 210 | ))) |
| 211 | (project--remote-file-names | 211 | (project--remote-file-names |
| 212 | (split-string (shell-command-to-string command) "\0" t)))) | 212 | (sort (split-string (shell-command-to-string command) "\0" t) |
| 213 | #'string<)))) | ||
| 213 | 214 | ||
| 214 | (defun project--remote-file-names (local-files) | 215 | (defun project--remote-file-names (local-files) |
| 215 | "Return LOCAL-FILES as if they were on the system of `default-directory'." | 216 | "Return LOCAL-FILES as if they were on the system of `default-directory'." |