summaryrefslogtreecommitdiff
path: root/helm-files.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thievol@posteo.net>2021-10-08 14:54:59 +0200
committerThierry Volpiatto <thievol@posteo.net>2021-10-08 14:54:59 +0200
commitf3418c954eb3f2b3bbe4f2a921ba915fb6f747ed (patch)
tree3d40062efca314d8230a438e3eb2f361e81ed5ee /helm-files.el
parent8440a92eedc499a742570c02731d5545413fc48c (diff)
Comments only
Diffstat (limited to 'helm-files.el')
-rw-r--r--helm-files.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/helm-files.el b/helm-files.el
index 233a547c..25471cbf 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -1515,12 +1515,13 @@ this working."
(setq cmd-line (format command mapfiles)) ; See [1]
(setq cmd-line (format "%s %s" command mapfiles)))
(eshell-command cmd-line))
+
+ ;; Run eshell-command sequencially on EACH marked files.
+ ;; To work with tramp handler we have to call
+ ;; COMMAND on basename of each file, using
+ ;; its basedir as `default-directory'.
(unwind-protect
(progn
- ;; Run eshell-command on EACH marked files.
- ;; To work with tramp handler we have to call
- ;; COMMAND on basename of each file, using
- ;; its basedir as `default-directory'.
(cl-loop for f in cand-list
for n from 1
for dir = (and (not (string-match helm--url-regexp f))