branch: elpa/helm
commit 8ac2c3f3dc7431f51fc840e698f811d0fce41895
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    Require dired-aux for dired-do-chxxx #2742
---
 helm-files.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/helm-files.el b/helm-files.el
index 7f0a685d444..1ecb813fbee 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -1730,12 +1730,15 @@ the car of marked files i.e. the first marked file."
 
 (defun helm-ff-dired-do-chxxx (&rest args)
   "Variation of `dired-do-chxxx' for helm."
+  (require 'dired-aux)
   (cl-letf (((symbol-function 'dired-get-marked-files)
              #'helm-ff--dired-marked-files)
             ((symbol-function 'dired-do-redisplay)
              #'ignore)
             ((symbol-function 'dired-get-filename)
              #'helm-ff--dired-get-filename))
+    ;; dired-aux is requiring dired so dired-click-to-select-mode should be
+    ;; also available.
     (let (dired-click-to-select-mode)
       (apply #'dired-do-chxxx args))))
 

Reply via email to