mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-06 23:51:24 -08:00
Expand file name for remote dirs as well
* lisp/progmodes/project.el (project--files-in-directory): Expand file name for remote dirs as well (bug#40940).
This commit is contained in:
parent
7a12ab5ea2
commit
1f17193e00
1 changed files with 6 additions and 8 deletions
|
|
@ -186,16 +186,14 @@ to find the list of ignores for each directory."
|
|||
(require 'xref)
|
||||
(defvar find-name-arg)
|
||||
(let* ((default-directory dir)
|
||||
(dirname (file-remote-p dir 'localname))
|
||||
(dirname (or dirname
|
||||
;; Make sure ~/ etc. in local directory name is
|
||||
;; expanded and not left for the shell command
|
||||
;; to interpret.
|
||||
(expand-file-name dir)))
|
||||
;; Make sure ~/ etc. in local directory name is
|
||||
;; expanded and not left for the shell command
|
||||
;; to interpret.
|
||||
(localdir (file-local-name (expand-file-name dir)))
|
||||
(command (format "%s %s %s -type f %s -print0"
|
||||
find-program
|
||||
dirname
|
||||
(xref--find-ignores-arguments ignores dirname)
|
||||
localdir
|
||||
(xref--find-ignores-arguments ignores localdir)
|
||||
(if files
|
||||
(concat (shell-quote-argument "(")
|
||||
" " find-name-arg " "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue