aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-29 03:23:38 -0500
committerCraig Jennings <c@cjennings.net>2026-04-29 03:23:38 -0500
commitbcdca69e5ee6ec1b03d7bc1dba3d136eb2ff4533 (patch)
tree4ad71cdb4de054d84f285e886730ad92027672b3 /modules
parentf9900f82a261e6dfaf835222d5cdb7a7526b3be0 (diff)
downloaddotemacs-bcdca69e5ee6ec1b03d7bc1dba3d136eb2ff4533.tar.gz
dotemacs-bcdca69e5ee6ec1b03d7bc1dba3d136eb2ff4533.zip
fix(eshell): correct call shape in eshell/find-using-dired
The body had `(find-name-dired . escaped-pattern)`, a dotted pair instead of a function call. The reader accepts it, but the form crashes the moment the `f` alias runs. find-name-dired takes (DIR PATTERN), so the right shape passes default-directory and the escaped pattern.
Diffstat (limited to 'modules')
-rw-r--r--modules/eshell-vterm-config.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/eshell-vterm-config.el b/modules/eshell-vterm-config.el
index cc382a3fd..df1f3f773 100644
--- a/modules/eshell-vterm-config.el
+++ b/modules/eshell-vterm-config.el
@@ -122,9 +122,9 @@
(eshell-send-input)))
(defun eshell/find-using-dired (file-pattern)
- "Find a file FILE-PATTERN' using 'find-name-dired'."
+ "Find a file matching FILE-PATTERN using `find-name-dired'."
(let ((escaped-pattern (regexp-quote file-pattern)))
- (find-name-dired . escaped-pattern)))
+ (find-name-dired default-directory escaped-pattern)))
(defun cj/eshell-delete-window-on-exit ()
"Close the eshell window when exiting."