From: Eli Zaretskii Date: Sat, 7 Oct 2023 06:46:04 +0000 (+0300) Subject: Fix 'ido--ffap-find-file' X-Git-Tag: emacs-29.1.90~24 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c27b90d04bfef5e39558dc84946ad3e57a9ee480;p=emacs.git 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) --- 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."