summaryrefslogtreecommitdiff
path: root/helm-mode.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2012-11-07 21:15:45 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2012-11-07 21:15:45 +0100
commit1e794084b6f207e0578a071787da6fef715ab44d (patch)
tree262dc141fbb783f6a24b42413e13057e6c3efb92 /helm-mode.el
parent336e7de7e21f6bf1f9163458e34e79407553b8c2 (diff)
* helm-mode.el (helm-c-read-file-name): Don't call file-exists-p on remote fnames.
Diffstat (limited to 'helm-mode.el')
-rw-r--r--helm-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/helm-mode.el b/helm-mode.el
index d9798032..98d4e84c 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -705,7 +705,9 @@ Keys description:
(match . helm-ff-match-function)
(candidates
. (lambda ()
- (append (and (not (file-exists-p helm-pattern))
+ ;; Don't run `file-exists-p' if `helm-pattern' is remote.
+ (append (and (not (file-remote-p helm-pattern))
+ (not (file-exists-p helm-pattern))
(list helm-pattern))
(if test
(loop with hn = (helm-ff-tramp-hostnames)