]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 'ido--ffap-find-file'
authorEli Zaretskii <eliz@gnu.org>
Sat, 7 Oct 2023 06:46:04 +0000 (09:46 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 7 Oct 2023 06:46:04 +0000 (09:46 +0300)
* 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

index f42d93837c15af4f23fd0be3c273a57a003e9f27..0fb504e8ac759b61f37719080521fa6b8d343a30 100644 (file)
@@ -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."