summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-10-07 09:46:04 +0300
committerEli Zaretskii <eliz@gnu.org>2023-10-07 09:46:04 +0300
commitc27b90d04bfef5e39558dc84946ad3e57a9ee480 (patch)
tree58387af8cd011a0e5f3acd5a4a69348ab7c17a01
parent1594d5f17ad9845be526381e6cd62313da41590a (diff)
downloademacs-c27b90d04bfef5e39558dc84946ad3e57a9ee480.tar.gz
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)
-rw-r--r--lisp/ido.el4
1 files 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."