From: Eli Zaretskii <eliz@gnu.org>
To: "Stéphane Soppera" <soppera@google.com>
Cc: 66382@debbugs.gnu.org
Subject: bug#66382: 29.1; Prefixed find-file-at-point fails when ido-mode is active.
Date: Sat, 07 Oct 2023 09:47:56 +0300 [thread overview]
Message-ID: <83h6n30vz7.fsf@gnu.org> (raw)
In-Reply-To: <CALZkvzhggS2O_dUKHoiDvqdVf-bu1X6HDTUu=6n=po8K6jM9Pw@mail.gmail.com> (bug-gnu-emacs@gnu.org)
> Date: Fri, 6 Oct 2023 20:41:39 +0200
> From: Stéphane Soppera via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> Recipe to reproduce:
>
> emacs -Q
> M-x ido-mode
> M-x ffap-bindings
> C-u M-x find-file-at-point RET
>
> (any file can be used; the default `~/` on Unix works)
>
> This fails with:
>
> apply: Wrong number of arguments: #<subr ido--ffap-find-file>, 2
>
> After doing M-x toggle-debug-on-error, the full stack is:
>
> Debugger entered--Lisp error: (wrong-number-of-arguments #<subr ido--ffap-find-file> 2)
> ido--ffap-find-file("~/" t)
> apply(ido--ffap-find-file ("~/" t))
> #f(advice ido--ffap-find-file :override find-file)("~/" t)
> funcall-interactively(#f(advice ido--ffap-find-file :override find-file) "~/" t)
> find-file-at-point()
> funcall-interactively(find-file-at-point)
> command-execute(find-file-at-point record)
> execute-extended-command((4) "find-file-at-point" nil)
> funcall-interactively(execute-extended-command (4) "find-file-at-point" nil)
> command-execute(execute-extended-command)
>
> This regression seems to come from `(call-interactively
> ffap-file-finder)` with `(advice ido--ffap-find-file :override
> find-file)`. Since `ido--ffap-find-file` is not interactive, the
> `interactive` of `find-file` is used, which uses `find-file-read-args`
> which returns two arguments and not simply one.
>
> The function `ido--ffap-find-file` was added to fix bug #50279.
Thanks, should be fixed now on the emacs-29 branch.
next prev parent reply other threads:[~2023-10-07 6:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-06 18:41 bug#66382: 29.1; Prefixed find-file-at-point fails when ido-mode is active Stéphane Soppera via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-07 6:47 ` Eli Zaretskii [this message]
2023-10-14 7:32 ` Eli Zaretskii
2023-10-16 9:51 ` Stéphane Soppera via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83h6n30vz7.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=66382@debbugs.gnu.org \
--cc=soppera@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.