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 07:50:55 -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 1340463149 8727 80.91.229.3 (23 Jun 2012 14:52:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jun 2012 14:52:29 +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 16:52:26 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 1SiRhG-0004Ej-W7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jun 2012 16:52:23 +0200 Original-Received: from localhost ([::1]:39840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiRhG-0005bu-Uw for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jun 2012 10:52:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiRhE-0005bN-6R for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 10:52:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiRhC-00042D-BV for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 10:52:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiRhC-000426-7l for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 10:52:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SiRkn-0005RI-OX for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 10:56:01 -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 14:56:01 +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.134046331820855 (code B ref 11715); Sat, 23 Jun 2012 14:56:01 +0000 Original-Received: (at 11715) by debbugs.gnu.org; 23 Jun 2012 14:55:18 +0000 Original-Received: from localhost ([127.0.0.1]:54104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiRk6-0005QK-7T for submit@debbugs.gnu.org; Sat, 23 Jun 2012 10:55:18 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:24675) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiRk2-0005QB-2q for 11715@debbugs.gnu.org; Sat, 23 Jun 2012 10:55:15 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5NEpS7u026869 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 23 Jun 2012 14:51:29 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5NEpRiu021296 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 23 Jun 2012 14:51:28 GMT Original-Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5NEpRnm012730; Sat, 23 Jun 2012 09:51:27 -0500 Original-Received: from dradamslap1 (/10.159.222.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 23 Jun 2012 07:51:27 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac1RSSBNUApvljMyQXqRmj6t2WvTlwAAhsVg 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:61219 Archived-At: > > What would construct a function of no args that is essentially > > `read-file-name-internal' and put it on `post-command-hook' > > As I said, it is *not* put on post-command-hook: > it is run by Icomplete's post-command-hook Don't know what you're insisting about. I was clear about that: Icomplete runs only `icomplete-exhibit' on `icomplete-post-command-hook' (hence on `post-command-hook')". Icomplete runs its hook on `post-command-hook'... (add-hook 'post-command-hook (lambda () (run-hooks 'icomplete-post-command-hook)) nil t) > so the error could be because that > function was put in minibuffer-completion-table or > minibuffer-completion-predicate (and hence called by > icomplete-completions), or even on icomplete-post-command-hook. > Can you check some of those variables? I have checked them and did not find anything. But the problem does not occur all the time. And, IIRC, it seems to occur once and then go away. (I'm not certain of that.) And as you know it is difficult (~impossible) to use the debugger with the Icomplete code. FWIW, I'm guessing also that if that function were somehow put into `minibuffer-completion-*' then I would see an error message sooner and in other places. > If you can find a way to trigger the problem with > M-: (run-hooks 'icomplete-post-command-hook) RET then we > could debug it a bit more easily (e.g. get a backtrace, use edebug, ...). Agreed. If I could. So far, I don't know how to repro the problem. FWIW, I don't see the error right now. I try `M-x forw' (to get Icomplete to kick in), and then I try `M-: (run-hooks 'icomplete-post-command-hook)'. It does not appear to do anything (besides show the completions), and it returns nil. And if I instead do `M-: icomplete-post-command-hook' it says only `(icomplete-exhibit)', as expected. I will try to keep my eyes open and see if I can find out anything more the next time I see the error. Dunno what else to look at. I realize that you cannot do more at this point either.