Subject: bug#49825: 'Make ido-mode override ffap-file-finder' commit make ffap malfunction

From: Joyer Huang <[email-masked]>
Date: Mon, 2 Aug 2021 16:09:27 +0800

when ido-mode is enabled.
ffap on any file will trigger a argument mismatch error.

step to reproduce the bug:
on emacs source directory. build emacs.
run 'src/emacs -nw -q'
M-x ido-mode
M-x eshell
ls
C-p
ffap

got error: 'Wrong number of arguments: (0 . 0), 1'

-- 
------Believe in the beauty of your dreams.