From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <0E81BDF53A444380B270F0D1522840B8@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340458825 12389 80.91.229.3 (23 Jun 2012 13:40:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jun 2012 13:40:25 +0000 (UTC) Cc: 11715@debbugs.gnu.org To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 23 15:40:25 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SiQZc-0007wX-Lt for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jun 2012 15:40:24 +0200 Original-Received: from localhost ([::1]:55760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiQZc-0005BH-Mi for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jun 2012 09:40:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiQZY-0005Ak-PA for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 09:40:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiQZX-0005Us-0c for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 09:40:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiQZW-0005UO-TC for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 09:40:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SiQd8-0002xE-Cb for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 09:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jun 2012 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11715 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11715-submit@debbugs.gnu.org id=B11715.134045903511336 (code B ref 11715); Sat, 23 Jun 2012 13:44:02 +0000 Original-Received: (at 11715) by debbugs.gnu.org; 23 Jun 2012 13:43:55 +0000 Original-Received: from localhost ([127.0.0.1]:53738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiQd0-0002wm-RT for submit@debbugs.gnu.org; Sat, 23 Jun 2012 09:43:55 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:27106) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiQcy-0002wf-Ac for 11715@debbugs.gnu.org; Sat, 23 Jun 2012 09:43:53 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5NDe5S8014557 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 23 Jun 2012 13:40:06 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5NDe4dH004664 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 23 Jun 2012 13:40:05 GMT Original-Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5NDe45q019235; Sat, 23 Jun 2012 08:40:04 -0500 Original-Received: from dradamslap1 (/10.159.222.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 23 Jun 2012 06:40:04 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac1Q+Pg1szoqFtZsRS2RQlN7/jF/lAASXrzA In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61212 Archived-At: > > 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)?