From c27b90d04bfef5e39558dc84946ad3e57a9ee480 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 7 Oct 2023 09:46:04 +0300 Subject: [PATCH] Fix 'ido--ffap-find-file' * lisp/ido.el (ido--ffap-find-file): Make the signature consistent with that of 'find-file', and pass the optional second argument to 'find-file'. (Bug#66382) --- lisp/ido.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ido.el b/lisp/ido.el index f42d93837c1..0fb504e8ac7 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -1508,8 +1508,8 @@ Removes badly formatted data and ignored directories." (add-hook 'minibuffer-setup-hook #'ido-minibuffer-setup) (add-hook 'choose-completion-string-functions #'ido-choose-completion-string)) -(defun ido--ffap-find-file (file) - (find-file file)) +(defun ido--ffap-find-file (file &optional wildcard) + (find-file file wildcard)) (define-minor-mode ido-everywhere "Toggle use of Ido for all buffer/file reading." -- 2.39.2