From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: 11715@debbugs.gnu.org
Subject: bug#11715: 24.1; Error in post-command-hook: wrong-number-of-arguments - read-file-internal
Date: Sat, 23 Jun 2012 06:39:32 -0700 [thread overview]
Message-ID: <E79A8B118CA84FCFB471561EEE8051DD@us.oracle.com> (raw)
In-Reply-To: <jwv62air6qz.fsf-monnier+emacs@gnu.org>
> > Error in post-command-hook (#[nil \300\301!\207 [run-hooks
> > icomplete-post-command-hook] 2]): (wrong-number-of-arguments (lambda
> > nil (let ((minibuffer-completing-file-name t))
> > (completion-table-in-turn (quote completion--embedded-envvar-table)
> > (quote completion--file-name-table)))) 3)
>
> This says that while running icomplete's post-command-hook, someone
> tried to call:
>
> > (lambda () (let ((minibuffer-completing-file-name t))
> > (completion-table-in-turn (quote completion--embedded-envvar-table)
> > (quote completion--file-name-table))))
>
> with 3 arguments.
> Now, grepping for minibuffer-completing-file-name, I don't
> see anywhere where we could build such a function. Could it come from
> some unbundled Elisp code (e.g. Icicles)?
Possibly, but I don't see how/where.
The code inside the `let' is the defalias of `read-file-name-internal'. That
should be some hint to who constructs that function.
Grepping the Icicles (and other 3rd-party code I use) for
`minibuffer-completing-file-name', I do not see anywhere that such a function
(or even something similar) is built.
And grepping for `read-file-name-internal' finds nothing that seems related.
The only place Icicles binds `minibuffer-completing-file-name' to t is in
`icicle-read-file-name', which, after doing some unrelated stuff just binds
`read-file-name-function' to nil and calls `read-file-name' (thus using the
default behavior for `read-file-name').
Icomplete runs only `icomplete-exhibit' on `icomplete-post-command-hook' (hence
on `post-command-hook') AFAICT.
I checked all of this code before filing the bug report, and checked it again
just now. Any idea? What would construct a function of no args that is
essentially `read-file-name-internal' and put it on `post-command-hook' (and
apparently in or around icompletion, since I see the error only in that
context)?
next prev parent reply other threads:[~2012-06-23 13:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-15 15:36 bug#11715: 24.1; Error in post-command-hook: wrong-number-of-arguments - read-file-internal Drew Adams
2012-06-23 4:30 ` Stefan Monnier
2012-06-23 13:39 ` Drew Adams [this message]
2012-06-23 14:04 ` Stefan Monnier
2012-06-23 14:50 ` Drew Adams
2012-06-24 3:54 ` bug#11715: 24.1; Error in post-command-hook: wrong-number-of-arguments -read-file-internal Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E79A8B118CA84FCFB471561EEE8051DD@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=11715@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).