emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 c27b90d04bf: Fix 'ido--ffap-find-file'


From: Eli Zaretskii
Subject: emacs-29 c27b90d04bf: Fix 'ido--ffap-find-file'
Date: Sat, 7 Oct 2023 02:46:44 -0400 (EDT)

branch: emacs-29
commit c27b90d04bfef5e39558dc84946ad3e57a9ee480
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]