diff options
| author | Felicián Németh | 2019-02-02 13:22:53 +0100 |
|---|---|---|
| committer | Michael Albinus | 2019-02-02 13:22:53 +0100 |
| commit | 2f55b971b42d13188157331a1e514949f20ced4f (patch) | |
| tree | 9ba2927e710949ed091adc12479eb4db1622d29f | |
| parent | 30c09955f64815201ae9b86215fed8ea2af0ba66 (diff) | |
| download | emacs-2f55b971b42d13188157331a1e514949f20ced4f.tar.gz emacs-2f55b971b42d13188157331a1e514949f20ced4f.zip | |
Fix Bug#34221
* lisp/progmodes/project.el (project--files-in-directory):
Support remote files. (Bug#34221)
| -rw-r--r-- | lisp/progmodes/project.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 3603e751fee..815cc7cd3d3 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el | |||
| @@ -189,9 +189,11 @@ to find the list of ignores for each directory." | |||
| 189 | (defun project--files-in-directory (dir ignores &optional files) | 189 | (defun project--files-in-directory (dir ignores &optional files) |
| 190 | (require 'find-dired) | 190 | (require 'find-dired) |
| 191 | (defvar find-name-arg) | 191 | (defvar find-name-arg) |
| 192 | (let ((command (format "%s %s %s -type f %s -print0" | 192 | (let ((default-directory dir) |
| 193 | (remote-id (file-remote-p dir)) | ||
| 194 | (command (format "%s %s %s -type f %s -print0" | ||
| 193 | find-program | 195 | find-program |
| 194 | dir | 196 | (file-local-name dir) |
| 195 | (xref--find-ignores-arguments | 197 | (xref--find-ignores-arguments |
| 196 | ignores | 198 | ignores |
| 197 | (expand-file-name dir)) | 199 | (expand-file-name dir)) |
| @@ -205,7 +207,8 @@ to find the list of ignores for each directory." | |||
| 205 | " " | 207 | " " |
| 206 | (shell-quote-argument ")"))"") | 208 | (shell-quote-argument ")"))"") |
| 207 | ))) | 209 | ))) |
| 208 | (split-string (shell-command-to-string command) "\0" t))) | 210 | (mapcar (lambda (file) (concat remote-id file)) |
| 211 | (split-string (shell-command-to-string command) "\0" t)))) | ||
| 209 | 212 | ||
| 210 | (defgroup project-vc nil | 213 | (defgroup project-vc nil |
| 211 | "Project implementation using the VC package." | 214 | "Project implementation using the VC package." |