branch: elpa/helm
commit ba4914730975ded2d540df5dddd26fedfbdd6a37
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Fix #2662 wrong number of arguments in emacs-27
with directory-files which takes 4 args in 27 whereas it takes 5 in
emacs-29+
---
helm-lib.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/helm-lib.el b/helm-lib.el
index 8bc2ecaf61..611c7f7c7d 100644
--- a/helm-lib.el
+++ b/helm-lib.el
@@ -1818,13 +1818,15 @@ Directories expansion is not supported."
"Not documented"
(replace-regexp-in-string "\n" "" desc))))
-(defun helm-local-directory-files (directory &optional full match nosort count)
- "Run `directory-files' without tramp file name handlers."
+(defun helm-local-directory-files (directory &rest args)
+ "Run `directory-files' without tramp file name handlers.
+
+Take same args as `directory-files'."
(require 'tramp)
(let ((file-name-handler-alist (copy-tree file-name-handler-alist))
tramp-mode)
(tramp-unload-file-name-handlers)
- (directory-files directory full match nosort count)))
+ (apply #'directory-files directory args)))
;;; helm internals
;;