From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Dec 2013 05:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16274@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.138820997715842 (code B ref -1); Sat, 28 Dec 2013 05:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Dec 2013 05:52:57 +0000 Received: from localhost ([127.0.0.1]:47631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwmpV-00047Q-0x for submit@debbugs.gnu.org; Sat, 28 Dec 2013 00:52:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51455) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwmpT-00047G-45 for submit@debbugs.gnu.org; Sat, 28 Dec 2013 00:52:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwmpJ-0004VQ-0d for submit@debbugs.gnu.org; Sat, 28 Dec 2013 00:52:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwmpI-0004VM-Td for submit@debbugs.gnu.org; Sat, 28 Dec 2013 00:52:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwmpA-0000O7-B7 for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 00:52:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vwmow-0004Tl-EN for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 00:52:36 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:27769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vwmow-0004TT-6k for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 00:52:22 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBS5qJkt031378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 28 Dec 2013 05:52:20 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBS5qIL2028474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 28 Dec 2013 05:52:19 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBS5qI5e026653 for ; Sat, 28 Dec 2013 05:52:18 GMT MIME-Version: 1.0 Message-ID: <0d02f1f6-f984-4da4-b077-43408a24c046@default> Date: Fri, 27 Dec 2013 21:52:13 -0800 (PST) From: Drew Adams X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I believe I reported long ago (in the Emacs 24 cycle, IIRC) that I occasionally get this error. This is still the case. The value it complains about not being a function is a list of completions (strings), which each have text property `face' with values `completions-common-part' and `(completions-first-difference)' (a list). I haven't been able to see where in the code this error could occur. I have noticed it being raised with my setup (icomplete+.el). Dunno whether it occurs also in emacs -Q. FWIW, my code does not even reference `icomplete-post-command-hook' explicitly, and it does not use those particular faces explicitly. I also have not been able to find the code that issues that error message. Perhaps it is in some C code - the latest C code I have is for Emacs 24.3. A wild guess about this is that the list of completions is the cached value in variable `completion-all-sorted-completions'. And perhaps in code like this: (completion-try-completion name comps nil (length name) md) Maybe COMPS here (which is the value of `completion-all-sorted-completions') is somehow expected to be a function? Does this ring a bell for anyone? Just poking in the dark. Dunno how to debug this better. The error message does not stop execution, being on `post-command-hook'. It just flashes ephemerally and then I can find it in `*Messages*'. And, again, it seems that this happens just once in a while. If this info does not help at all, feel free to close the bug. Or leave it open, for future reference. It has been there for a while now. In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-12-27 on ODIEONE Bzr revision: 115778 rgm@gnu.org-20131228000456-1797o8z6veuyozs0 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/binary --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib CPPFLAGS=3D-Ic:/Devel/emacs/include' From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2014 04:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Drew Adams Cc: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.138872299317632 (code B ref 16274); Fri, 03 Jan 2014 04:24:02 +0000 Received: (at 16274) by debbugs.gnu.org; 3 Jan 2014 04:23:13 +0000 Received: from localhost ([127.0.0.1]:58977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VywHx-0004aJ-39 for submit@debbugs.gnu.org; Thu, 02 Jan 2014 23:23:13 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:28202) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VywHv-0004aB-4F for 16274@debbugs.gnu.org; Thu, 02 Jan 2014 23:23:11 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFsr+l6/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0BwsUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFFsr+l6/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0BwsUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="43831245" Received: from 108-175-233-122.dsl.teksavvy.com (HELO pastel.home) ([108.175.233.122]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 02 Jan 2014 23:23:10 -0500 Received: by pastel.home (Postfix, from userid 20848) id 6DB1A6006A; Thu, 2 Jan 2014 23:23:10 -0500 (EST) From: Stefan Monnier Message-ID: References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> Date: Thu, 02 Jan 2014 23:23:10 -0500 In-Reply-To: <0d02f1f6-f984-4da4-b077-43408a24c046@default> (Drew Adams's message of "Fri, 27 Dec 2013 21:52:13 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > I haven't been able to see where in the code this error could occur. > I have noticed it being raised with my setup (icomplete+.el). Dunno > whether it occurs also in emacs -Q. For now, I'll assume that the problem is in your icomplete+.el, because in any case, there's not much info to go about tracking down the problem. Stefan From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2014 16:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Stefan Monnier Cc: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.13887660393736 (code B ref 16274); Fri, 03 Jan 2014 16:21:01 +0000 Received: (at 16274) by debbugs.gnu.org; 3 Jan 2014 16:20:39 +0000 Received: from localhost ([127.0.0.1]:60098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vz7UD-0000yB-U7 for submit@debbugs.gnu.org; Fri, 03 Jan 2014 11:20:38 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:40168) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vz7UB-0000y3-VV for 16274@debbugs.gnu.org; Fri, 03 Jan 2014 11:20:36 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s03GKYfs032617 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 3 Jan 2014 16:20:35 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s03GKXee004639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Jan 2014 16:20:34 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s03GKXMD029594; Fri, 3 Jan 2014 16:20:33 GMT MIME-Version: 1.0 Message-ID: <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> Date: Fri, 3 Jan 2014 08:20:32 -0800 (PST) From: Drew Adams References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > > I haven't been able to see where in the code this error could > > occur. I have noticed it being raised with my setup > > (icomplete+.el). Dunno whether it occurs also in emacs -Q. >=20 > For now, I'll assume that the problem is in your icomplete+.el, > because in any case, there's not much info to go about tracking > down the problem. Fair enough. But note that I mentioned that: > FWIW, my code does not even reference `icomplete-post-command-hook' > explicitly, and it does not use those particular faces explicitly. Can you identify the code that issues that error message? That might help. From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2014 22:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Drew Adams Cc: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.138878725913851 (code B ref 16274); Fri, 03 Jan 2014 22:15:02 +0000 Received: (at 16274) by debbugs.gnu.org; 3 Jan 2014 22:14:19 +0000 Received: from localhost ([127.0.0.1]:60620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzD0V-0003bL-E7 for submit@debbugs.gnu.org; Fri, 03 Jan 2014 17:14:19 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:19397) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzD0T-0003bD-B1 for 16274@debbugs.gnu.org; Fri, 03 Jan 2014 17:14:17 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFG4rwsm/2dsb2JhbAA6Crs1g1kXc4IeAQEEAVYjBQsLNAcLFBgNJIgeBsEtjRWDdQOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFG4rwsm/2dsb2JhbAA6Crs1g1kXc4IeAQEEAVYjBQsLNAcLFBgNJIgeBsEtjRWDdQOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="43921602" Received: from 184-175-11-38.dsl.teksavvy.com (HELO pastel.home) ([184.175.11.38]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Jan 2014 17:14:16 -0500 Received: by pastel.home (Postfix, from userid 20848) id 9AEFE6013A; Fri, 3 Jan 2014 17:14:16 -0500 (EST) From: Stefan Monnier Message-ID: References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> Date: Fri, 03 Jan 2014 17:14:16 -0500 In-Reply-To: <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> (Drew Adams's message of "Fri, 3 Jan 2014 08:20:32 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> FWIW, my code does not even reference `icomplete-post-command-hook' >> explicitly, The message only says that the error occurs while running icomplete-post-command-hook. So if your code affects something run by icomplete-post-command-hook, it's still a possible culprit. >> and it does not use those particular faces explicitly. Obviously the list of strings comes from completion-all-completions or completion-all-sorted-completions and looks sane. So the error is that some code mistakenly treats the list as a function. > Can you identify the code that issues that error message? It's the C code that runs `post-command-hook', AFAIK. Stefan From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2014 22:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Stefan Monnier Cc: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.138878952922330 (code B ref 16274); Fri, 03 Jan 2014 22:53:01 +0000 Received: (at 16274) by debbugs.gnu.org; 3 Jan 2014 22:52:09 +0000 Received: from localhost ([127.0.0.1]:60668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzDb6-0005o6-Iw for submit@debbugs.gnu.org; Fri, 03 Jan 2014 17:52:08 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:29392) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzDb4-0005nv-Hv for 16274@debbugs.gnu.org; Fri, 03 Jan 2014 17:52:07 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s03Mq4xM028168 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 3 Jan 2014 22:52:05 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s03Mq3BE015355 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Jan 2014 22:52:04 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s03Mq3Tm002765; Fri, 3 Jan 2014 22:52:03 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 3 Jan 2014 14:52:01 -0800 (PST) From: Drew Adams References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > Obviously the list of strings comes from completion-all-completions > or completion-all-sorted-completions and looks sane. So the error is > that some code mistakenly treats the list as a function. Yes, I said as much, explicitly. > > Can you identify the code that issues that error message? >=20 > It's the C code that runs `post-command-hook', AFAIK. I was looking for the function that issued the `invalid-function' error. It seems to be `eval_sub' (via `Qinvalid_function'). So no special help there. So far, my best guess is still that in (completion-try-completion name comps nil (length name) md) the list COMPS is for some reason being treated as a function (the second argument can of course be either). And I'm still wild-guessing that this somehow has to do with the caching of the list of completions in variable `completion-all-sorted-completions'. Maybe `completion--nth-completion' (called by `completion-try-completion') for some reason finds=20 (completion-metadata-get metadata 'completion--unquote-requote) to be non-nil, and so calls its TABLE argument, trying to requote? Not easy to debug this. I do not see the problem regularly. From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2014 04:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Drew Adams Cc: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.138881111332243 (code B ref 16274); Sat, 04 Jan 2014 04:52:01 +0000 Received: (at 16274) by debbugs.gnu.org; 4 Jan 2014 04:51:53 +0000 Received: from localhost ([127.0.0.1]:32802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzJDE-0008Nz-OC for submit@debbugs.gnu.org; Fri, 03 Jan 2014 23:51:53 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:51760) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzJDC-0008No-01 for 16274@debbugs.gnu.org; Fri, 03 Jan 2014 23:51:50 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFG4rwsm/2dsb2JhbAA6Crs1g1kXc4IeAQEEAVYjBQsLNAcLFBgNJIgeBsEtjRWDdQOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFG4rwsm/2dsb2JhbAA6Crs1g1kXc4IeAQEEAVYjBQsLNAcLFBgNJIgeBsEtjRWDdQOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="43948435" Received: from 184-175-11-38.dsl.teksavvy.com (HELO pastel.home) ([184.175.11.38]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Jan 2014 23:51:48 -0500 Received: by pastel.home (Postfix, from userid 20848) id 9D9FA6063D; Fri, 3 Jan 2014 23:51:48 -0500 (EST) From: Stefan Monnier Message-ID: References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> Date: Fri, 03 Jan 2014 23:51:48 -0500 In-Reply-To: (Drew Adams's message of "Fri, 3 Jan 2014 14:52:01 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> > Can you identify the code that issues that error message? >> It's the C code that runs `post-command-hook', AFAIK. > I was looking for the function that issued the `invalid-function' > error. It seems to be `eval_sub' (via `Qinvalid_function'). Right, it's probably eval of funcall. > So no special help there. Indeed. > So far, my best guess is still that in > (completion-try-completion name comps nil (length name) md) > the list COMPS is for some reason being treated as a function (the > second argument can of course be either). Oh, you mean that the error could come from the fact that `md' goes with `candidates', so some code might assume that the completion table is a function based on the `md' data, whereas we passed `comps' which is a list of strings? Hmm... that sounds plausible. > Maybe `completion--nth-completion' (called by > `completion-try-completion') for some reason finds > (completion-metadata-get metadata 'completion--unquote-requote) to be > non-nil, and so calls its TABLE argument, trying to requote? Apply the patch below. That should replace your error message with a different one, so if the error message stays the same, the problem is elsewhere. And if a new message appears we've found a culprit. Of course, minibuffer.el is preloaded, so you'll want to re-dump your Emacs, force reloading minibuffer.el(c) from your .emacs, or do some other dance to make sure you use the new definition of completion--nth-completion. Stefan === modified file 'lisp/minibuffer.el' --- lisp/minibuffer.el 2014-01-01 07:43:34 +0000 +++ lisp/minibuffer.el 2014-01-04 04:48:56 +0000 @@ -819,6 +819,7 @@ ;; part of the string (e.g. substitute-in-file-name). (let ((requote (when (completion-metadata-get metadata 'completion--unquote-requote) + (cl-assert (functionp table)) (let ((new (funcall table string point 'completion--unquote))) (setq string (pop new)) (setq table (pop new)) From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2014 07:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Stefan Monnier Cc: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.138881902814480 (code B ref 16274); Sat, 04 Jan 2014 07:04:02 +0000 Received: (at 16274) by debbugs.gnu.org; 4 Jan 2014 07:03:48 +0000 Received: from localhost ([127.0.0.1]:32900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzLGt-0003lT-CB for submit@debbugs.gnu.org; Sat, 04 Jan 2014 02:03:48 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:20661) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzLGq-0003lJ-4l for 16274@debbugs.gnu.org; Sat, 04 Jan 2014 02:03:44 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s0473fwL000910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 4 Jan 2014 07:03:43 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0473eWT003918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Jan 2014 07:03:41 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0473eRP010385; Sat, 4 Jan 2014 07:03:40 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 3 Jan 2014 23:03:38 -0800 (PST) From: Drew Adams References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > Apply the patch below. That should replace your error message with > a different one, so if the error message stays the same, the problem > is elsewhere. And if a new message appears we've found a culprit. > Of course, minibuffer.el is preloaded, so you'll want to re-dump > your Emacs, force reloading minibuffer.el(c) from your .emacs, or > do some other dance to make sure you use the new definition of > completion--nth-completion. Hey, thanks for hanging in there. I patched minibuffer.el and will `load-library' the patched version from my .emacs. That should do it, I assume. It's not often that I notice the error (in *Messages*, since the message itself is fleeting), but I'll try to keep an eye out for the new message and let you know. (I added a noticeable STRING arg to the `cl-assert' form.) From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2014 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Stefan Monnier Cc: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.138885032710127 (code B ref 16274); Sat, 04 Jan 2014 15:46:01 +0000 Received: (at 16274) by debbugs.gnu.org; 4 Jan 2014 15:45:27 +0000 Received: from localhost ([127.0.0.1]:33954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzTPi-0002dH-R6 for submit@debbugs.gnu.org; Sat, 04 Jan 2014 10:45:27 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:44756) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VzTPf-0002d5-IM for 16274@debbugs.gnu.org; Sat, 04 Jan 2014 10:45:24 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s04FjLv1028531 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 4 Jan 2014 15:45:22 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s04FjKWA002825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Jan 2014 15:45:20 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s04FjJ39023858; Sat, 4 Jan 2014 15:45:20 GMT MIME-Version: 1.0 Message-ID: Date: Sat, 4 Jan 2014 07:45:15 -0800 (PST) From: Drew Adams References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) > It's not often that I notice the error (in *Messages*, since the > message itself is fleeting), but I'll try to keep an eye out for > the new message and let you know. (I added a noticeable STRING > arg to the `cl-assert' form.) Well, it didn't take that long. In the same session (after loading the patched minibuffer.el. I did not get the `cl-assert' violation. I got the same, original error: Error in post-command-hook (icomplete-post-command-hook): (wrong-type-argument stringp nil) Well, actually, that's not the same error, but it is (IIRC) the one I reported originally. I've added some more debug with `stringp' assertions. Will let you know what I find out. From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2014 03:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Drew Adams Cc: 16274@debbugs.gnu.org, Stefan Monnier Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.139200451732570 (code B ref 16274); Mon, 10 Feb 2014 03:56:02 +0000 Received: (at 16274) by debbugs.gnu.org; 10 Feb 2014 03:55:17 +0000 Received: from localhost ([127.0.0.1]:33278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WChxk-0008TF-Cz for submit@debbugs.gnu.org; Sun, 09 Feb 2014 22:55:16 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:35511) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WChxh-0008T6-PQ for 16274@debbugs.gnu.org; Sun, 09 Feb 2014 22:55:14 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WChxS-0005TO-5P; Mon, 10 Feb 2014 04:54:58 +0100 From: Lars Ingebrigtsen References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> Date: Sun, 09 Feb 2014 19:53:45 -0800 In-Reply-To: (Drew Adams's message of "Sat, 4 Jan 2014 07:45:15 -0800 (PST)") Message-ID: <87zjlzei7q.fsf@building.gnus.org> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WChxS-0005TO-5P X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392609299.76535@eDI2ZFT1XAQx3FTYnLkRGg X-Spam-Status: No X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Drew Adams writes: >> It's not often that I notice the error (in *Messages*, since the >> message itself is fleeting), but I'll try to keep an eye out for >> the new message and let you know. (I added a noticeable STRING >> arg to the `cl-assert' form.) > > Well, it didn't take that long. In the same session (after loading > the patched minibuffer.el. I did not get the `cl-assert' violation. > I got the same, original error: > > Error in post-command-hook (icomplete-post-command-hook): > (wrong-type-argument stringp nil) > > Well, actually, that's not the same error, but it is (IIRC) > the one I reported originally. > > I've added some more debug with `stringp' assertions. Will let > you know what I find out. You can also use `debug-on-message' to find what make the message appear. Anyway, is this an Emacs bug? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2014 16:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Lars Ingebrigtsen Cc: 16274@debbugs.gnu.org, Drew Adams Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.13920501066863 (code B ref 16274); Mon, 10 Feb 2014 16:36:02 +0000 Received: (at 16274) by debbugs.gnu.org; 10 Feb 2014 16:35:06 +0000 Received: from localhost ([127.0.0.1]:41514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCtp3-0001mc-Px for submit@debbugs.gnu.org; Mon, 10 Feb 2014 11:35:06 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:21067) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCtp0-0001m7-J9 for 16274@debbugs.gnu.org; Mon, 10 Feb 2014 11:35:02 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFHO+KAF/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0BwsUGA0kLYdxBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av8EABK/CFHO+KAF/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0BwsUGA0kLYdxBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="47204330" Received: from 206-248-160-5.dsl.teksavvy.com (HELO pastel.home) ([206.248.160.5]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 10 Feb 2014 11:34:57 -0500 Received: by pastel.home (Postfix, from userid 20848) id B26C2616C6; Mon, 10 Feb 2014 11:34:56 -0500 (EST) From: Stefan Monnier Message-ID: References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <87zjlzei7q.fsf@building.gnus.org> Date: Mon, 10 Feb 2014 11:34:56 -0500 In-Reply-To: <87zjlzei7q.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Sun, 09 Feb 2014 19:53:45 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> Error in post-command-hook (icomplete-post-command-hook): >> (wrong-type-argument stringp nil) > You can also use `debug-on-message' to find what make the message appear. In this case, you won't learn anything more than what the error message says, sadly. > Anyway, is this an Emacs bug? That was the working hypothesis, yes. Drew, any news on this bug? Stefan From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2014 20:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Stefan Monnier , Lars Ingebrigtsen Cc: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.139206573622577 (code B ref 16274); Mon, 10 Feb 2014 20:56:01 +0000 Received: (at 16274) by debbugs.gnu.org; 10 Feb 2014 20:55:36 +0000 Received: from localhost ([127.0.0.1]:41840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCxt8-0005s4-Q1 for submit@debbugs.gnu.org; Mon, 10 Feb 2014 15:55:35 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:17913) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCxt6-0005rq-5r for 16274@debbugs.gnu.org; Mon, 10 Feb 2014 15:55:32 -0500 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1AKtMlC019706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 Feb 2014 20:55:23 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s1AKtLPF001593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 10 Feb 2014 20:55:22 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1AKtLNx006662; Mon, 10 Feb 2014 20:55:21 GMT MIME-Version: 1.0 Message-ID: <6d8c4718-3a26-4ede-8699-66997536721a@default> Date: Mon, 10 Feb 2014 12:55:21 -0800 (PST) From: Drew Adams References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <87zjlzei7q.fsf@building.gnus.org> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > > Anyway, is this an Emacs bug? >=20 > That was the working hypothesis, yes. Drew, any news on this bug? Not yet, unfortunately. But I've been checking *Messages*. And I've kept my copy of minibuffer.el, with the inserted cl-assert's, up-to-date wrt minibuffer.el changes. I'll keep watching *Messages*. Unfortunately, although I've pretty much sprinkled cl-assert's everywhere, I still see the error with no cl-assert message. Here, for example, an extract of *Messages* from today: ... Refining difference region 22 ... Saving old diff region #22 of buffer A. To recover, type `ra' [2 times] Only white-space differences in region 22=20 Quit this Ediff session? (y or n) y Saving file d:/path/to/stefan-minibuffer.el... Wrote d:/path/to/stefan-minibuffer.el byte-code: Beginning of buffer Quit Undo! [2 times] Error in post-command-hook (icomplete-post-command-hook): (wrong-type-argum= ent stringp yes) Sending... Sending via mail... Sending...done Back to top level. Mark set Auto-saving...done Mark set [2 times] ... From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Feb 2014 05:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Stefan Monnier Cc: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.139287301122604 (code B ref 16274); Thu, 20 Feb 2014 05:11:01 +0000 Received: (at 16274) by debbugs.gnu.org; 20 Feb 2014 05:10:11 +0000 Received: from localhost ([127.0.0.1]:32880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGLti-0005sV-JC for submit@debbugs.gnu.org; Thu, 20 Feb 2014 00:10:11 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:38987) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGLtf-0005sA-Ts for 16274@debbugs.gnu.org; Thu, 20 Feb 2014 00:10:08 -0500 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1K5A1Rm028474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Feb 2014 05:10:01 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1K59xJq001266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Feb 2014 05:10:00 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1K59xMP017736; Thu, 20 Feb 2014 05:09:59 GMT MIME-Version: 1.0 Message-ID: <00fca856-c9f0-4fe4-9b28-d2a4eb578980@default> Date: Wed, 19 Feb 2014 21:09:59 -0800 (PST) From: Drew Adams References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <87zjlzei7q.fsf@building.gnus.org> <6d8c4718-3a26-4ede-8699-66997536721a@default> In-Reply-To: <6d8c4718-3a26-4ede-8699-66997536721a@default> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > > Drew, any news on this bug? An update, but I'm not sure whether it is the exact same problem I have seen before. After changing some of my code recently, and doing something different, I can now get such an assertion violation. If I turn off icomplete-mode then the problem goes away. The assertion violation occurs in `completion--nth-completion', after (when (completion-metadata-get metadata 'completion--unquote-requote). I inserted this debug code just after that arg to `when': (message "N: %S, STRING: %S, TABLE: %S, PRED: %S, POINT: %S, METADATA: %S" n string table pred point metadata) (cl-assert (functionp table) nil "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D INVAL= ID FUNCTION =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D") This is what I see in *Messages* (I've added some newlines for the mail): N: 2, STRING: "ls", TABLE: read-file-name-internal, PRED: file-exists-p, POINT: 2, METADATA: (metadata (category . file) (completion--unquote-requot= e . t)) N: 1, STRING: "ls", TABLE: (#("ls-lisp+.el" 0 1 (face completions-common-pa= rt) 1 2 (face completions-common-part) 2 3 (face (completions-first-difference= ))) #("ls-lisp-20.el" 0 1 (face completions-common-part) 1 2 (face completions-common-part) 2 3 (face (completions-first-difference))))= , PRED: nil, POINT: 2, METADATA: (metadata (category . file) (completion--unquote-requote . t)) Error in post-command-hook (icomplete-post-command-hook): (error "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D INVALID = FUNCTION =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D") There are two calls to `completion--nth-completion' here, of which the first (which I guess corresponds to `completion-all-completions') goes OK. For the second (which I guess corresponds to `completion-try-completion'), arg TABLE is a list of (propertized) strings, not a function. I do not understand this code very well. Hope this sheds some light for yo= u. I doubt if describing what I was doing at the time will help, but here it is, just in case: With my code (Icicles), I use a different kind of completion for `!' in Dired (e.g.). It is file-name completion (against program files in the path etc.), but the minibuffer history in this case is `shell-command-history'. I hit `!' on a file in Dired, then hit `M-p' to access the first item of the history, which was `ls' (which matches a couple of file names). It was when I hit `M-p' that I got the assertion violation. The same thing happened using my icomplete+.el and using vanilla icomplete.el. With a little more debug I determined that it is the second call to `completion-try-completion' that causes the problem: the one that is used when BASE-SIZE is not > 0. In this case, BASE-SIZE =3D 0, so this code is executed: ;; If the `comps' are 0-based, the result should be the same with `comps'. (completion-try-completion name comps nil (length name) md))) The problem is apparently that COMPS is a list of strings (file names), not a function. HTH. Let me know if you have further debugging suggestions or need more info. From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Jul 2014 21:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Stefan Monnier Cc: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.140580671618116 (code B ref 16274); Sat, 19 Jul 2014 21:52:01 +0000 Received: (at 16274) by debbugs.gnu.org; 19 Jul 2014 21:51:56 +0000 Received: from localhost ([127.0.0.1]:59721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8cXs-0004i7-AU for submit@debbugs.gnu.org; Sat, 19 Jul 2014 17:51:56 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:35840) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8cXq-0004hu-7o for 16274@debbugs.gnu.org; Sat, 19 Jul 2014 17:51:55 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s6JLpkrm019978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 19 Jul 2014 21:51:47 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s6JLpjPG025347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 19 Jul 2014 21:51:46 GMT Received: from ubhmt105.oracle.com (ubhmt105.oracle.com [156.151.24.10]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s6JLpiKI024509; Sat, 19 Jul 2014 21:51:45 GMT MIME-Version: 1.0 Message-ID: <2cfcdeb6-62fe-458a-ac08-459e192b413b@default> Date: Sat, 19 Jul 2014 14:51:44 -0700 (PDT) From: Drew Adams References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <87zjlzei7q.fsf@building.gnus.org> <6d8c4718-3a26-4ede-8699-66997536721a@default> <00fca856-c9f0-4fe4-9b28-d2a4eb578980@default> In-Reply-To: <00fca856-c9f0-4fe4-9b28-d2a4eb578980@default> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) FWIW, just got the error again, in this version: In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-06-28 on ODIEONE Bzr revision: 117431 rgm@gnu.org-20140628015517-eku6hj8mpgcvfnso Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1 -Ic:/Devel/emacs/include'' Error in post-command-hook (icomplete-post-command-hook): (cl-assertion-fai= led (functionp table)) From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: ; One method to produce an error in icomplete-post-command-hook References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> In-Reply-To: <0d02f1f6-f984-4da4-b077-43408a24c046@default> Resent-From: Jeremy Moore Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Jan 2015 14:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.142262791315822 (code B ref 16274); Fri, 30 Jan 2015 14:26:01 +0000 Received: (at 16274) by debbugs.gnu.org; 30 Jan 2015 14:25:13 +0000 Received: from localhost ([127.0.0.1]:57903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHCVU-000477-Bs for submit@debbugs.gnu.org; Fri, 30 Jan 2015 09:25:13 -0500 Received: from mail-wi0-f194.google.com ([209.85.212.194]:42457) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHCVS-00046r-5k for 16274@debbugs.gnu.org; Fri, 30 Jan 2015 09:25:11 -0500 Received: by mail-wi0-f194.google.com with SMTP id r20so2258888wiv.1 for <16274@debbugs.gnu.org>; Fri, 30 Jan 2015 06:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=3tBn/FSYEyxXU2ZNqJj8HsjuN86DGf3FiclwESdLg0I=; b=qOVgxE5u598hvvyxAPmt3Y4/PTe6vZElBw+jo1UgA1393yIxJQKxT+F78BNu6sL/Yy ouOpAjSrUMhtPaOX68OwOBYHgj6EWPKLZHThNX0Qyp9mran8ZvIfi4HoQzJ5QoberIw4 ERFJa/txfpMcqBG2QCZnLRFoB7e8Pn8mNKHHNztvaPXAW5vY4louv1graD5Rpe9paXin 51t/GacVYHomy6JYfTCMbksjNvjBGHDiYVlrWVvi0kvmrFORp7h0CkCB/YktoWonaZVd FPUdQ52U0h7FnSpUEF+fsG5FSb3GWlM+TArK3SLPHVPWS14+W16vjTgRU//+a2IE+eff u9iA== MIME-Version: 1.0 X-Received: by 10.195.12.35 with SMTP id en3mr12412409wjd.129.1422627904529; Fri, 30 Jan 2015 06:25:04 -0800 (PST) Received: by 10.180.109.48 with HTTP; Fri, 30 Jan 2015 06:25:04 -0800 (PST) Date: Fri, 30 Jan 2015 14:25:04 +0000 X-Google-Sender-Auth: ARnU_2CkqjD5WZfLbYdm2p1wrik Message-ID: From: Jeremy Moore Content-Type: multipart/alternative; boundary=047d7bfcf788e5b259050ddf5e6d X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --047d7bfcf788e5b259050ddf5e6d Content-Type: text/plain; charset=UTF-8 Hi folks, I get a similar error by following this sequence in 24.4.1: 1. emacs -Q 2. M-x icomplete-mode 3. M-x set-variable icomplete-show-matches-on-no-input t 4. C-x C-f C-a C-k Version and settings are below. Regards, Jeremy In GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=/c/usr' Important settings: value of $LANG: ENG locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: icomplete-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x i c o m p l e t e SPC m o d e M-x s e t SPC v a r i c o m p l e t e SPC s h o w t C-x C-f C-a C-k C-g M-x r e p o t r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Icomplete mode enabled Error in post-command-hook (icomplete-post-command-hook): (invalid-function (#("./" 0 1 (face (completions-first-difference))) #("../" 0 1 (face (completions-first-difference))) #("addpm.exe" 0 1 (face (completions-first-difference))) #("ctags.exe" 0 1 (face (completions-first-difference))) #("emacs.exe" 0 1 (face (completions-first-difference))) #("etags.exe" 0 1 (face (completions-first-difference))) #("libXpm.dll" 0 1 (face (completions-first-difference))) #("ebrowse.exe" 0 1 (face (completions-first-difference))) #("runemacs.exe" 0 1 (face (completions-first-difference))) #("emacs-24.4.exe" 0 1 (face (completions-first-difference))) #("grep-changelog" 0 1 (face (completions-first-difference))) #("runvanilla.lnk" 0 1 (face (completions-first-difference))) #("emacsclient.exe" 0 1 (face (completions-first-difference))) #("emacsclientw.exe" 0 1 (face (completions-first-difference))))) Quit Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-edit easymenu wid-edit cl-loaddefs cl-lib help-fns mule-util cus-start cus-load icomplete time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 94199 5225) (symbols 32 19208 0) (miscs 32 36 138) (strings 16 14989 3911) (string-bytes 1 391743) (vectors 8 10790) (vector-slots 4 394081 3824) (floats 8 65 84) (intervals 28 212 41) (buffers 508 11)) --047d7bfcf788e5b259050ddf5e6d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi folks,

I get= a similar error by following this sequence in 24.4.1:
1. emacs -Q=
2. M-x icomplete-mode
3. M-x set-variable icomplete-show= -matches-on-no-input t
4. C-x C-f C-a C-k

Versio= n and settings are below.

Regards,
Jeremy

In GNU Emacs 24.4.1 (i686-pc-mingw32)
=C2=A0of 2014-10-24 on LEG57= 0
Windowing system distributor `Microsoft Corp.', version 6.1.7601Configured using:
=C2=A0`configure --prefix=3D/c/usr'

Impor= tant settings:
=C2=A0 value of $LANG: ENG
=C2=A0 locale-coding-system= : cp1252

Major mode: Lisp Interaction

Minor modes in effect:<= br>=C2=A0 icomplete-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 electric-in= dent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
= =C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global= -font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode:= t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 tra= nsient-mark-mode: t

Recent input:
M-x i c o m p l e t e SPC m o d= e <return> M-x s e
t SPC v a r <return> i c o m p l e t e = SPC s h o w
<return> t <return> C-x C-f C-a C-k C-g M-x r e= p o
t <backspace> r t <return>

Recent messages:
= For information about GNU Emacs and the GNU system, type C-h C-a.
Icompl= ete mode enabled
Error in post-command-hook (icomplete-post-command-hook= ): (invalid-function (#("./" 0 1 (face (completions-first-differe= nce))) #("../" 0 1 (face (completions-first-difference))) #("= ;addpm.exe" 0 1 (face (completions-first-difference))) #("ctags.e= xe" 0 1 (face (completions-first-difference))) #("emacs.exe"= 0 1 (face (completions-first-difference))) #("etags.exe" 0 1 (fa= ce (completions-first-difference))) #("libXpm.dll" 0 1 (face (com= pletions-first-difference))) #("ebrowse.exe" 0 1 (face (completio= ns-first-difference))) #("runemacs.exe" 0 1 (face (completions-fi= rst-difference))) #("emacs-24.4.exe" 0 1 (face (completions-first= -difference))) #("grep-changelog" 0 1 (face (completions-first-di= fference))) #("runvanilla.lnk" 0 1 (face (completions-first-diffe= rence))) #("emacsclient.exe" 0 1 (face (completions-first-differe= nce))) #("emacsclientw.exe" 0 1 (face (completions-first-differen= ce)))))
Quit

Load-path shadows:
None found.

Features:(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml<= br>mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
g= mm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prs= vr mail-utils cus-edit easymenu wid-edit cl-loaddefs cl-lib
help-fns mul= e-util cus-start cus-load icomplete time-date tooltip
electric uniquify = ediff-hook vc-hooks lisp-float-type mwheel dos-w32
ls-lisp w32-common-fn= s disp-table w32-win w32-vars tool-bar dnd fontset
image regexp-opt frin= ge tabulated-list newcomment lisp-mode prog-mode
register page menu-bar = rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax face= menu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibet= an thai tai-viet lao korean
japanese hebrew greek romanian slovak czech = european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-h= ook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face= macroexp files
text-properties overlay sha1 md5 base64 format env code-= pages mule
custom widget hashtable-print-readable backquote make-network= -process
w32notify w32 multi-tty emacs)

Memory information:
((= conses 8 94199 5225)
=C2=A0(symbols 32 19208 0)
=C2=A0(miscs 32 36 13= 8)
=C2=A0(strings 16 14989 3911)
=C2=A0(string-bytes 1 391743)
=C2= =A0(vectors 8 10790)
=C2=A0(vector-slots 4 394081 3824)
=C2=A0(floats= 8 65 84)
=C2=A0(intervals 28 212 41)
=C2=A0(buffers 508 11))

=
--047d7bfcf788e5b259050ddf5e6d-- From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: Can still reproduce in Emacs 24.5.2/x86_64-unknown-linux-gnu References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> In-Reply-To: <0d02f1f6-f984-4da4-b077-43408a24c046@default> Resent-From: "Michael Hoffman" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Aug 2015 19:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.143931974314362 (code B ref 16274); Tue, 11 Aug 2015 19:03:02 +0000 Received: (at 16274) by debbugs.gnu.org; 11 Aug 2015 19:02:23 +0000 Received: from localhost ([127.0.0.1]:53469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPEoZ-0003ja-1B for submit@debbugs.gnu.org; Tue, 11 Aug 2015 15:02:23 -0400 Received: from sneak2.sneakemail.com ([38.113.6.65]:50129) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1ZPEoX-0003jS-D0 for 16274@debbugs.gnu.org; Tue, 11 Aug 2015 15:02:21 -0400 Received: (qmail 1059 invoked from network); 11 Aug 2015 19:02:20 -0000 Received: from unknown (HELO localhost.localdomain) (192.168.0.1) by sneak2.sneakemail.com with SMTP; 11 Aug 2015 19:02:20 -0000 Received: from 192.168.0.2 by mail.sneakemail.com with SMTP; 11 Aug 2015 19:02:20 -0000 Received: (sneakemail censored 22416-1439319740-523145 #2); 11 Aug 2015 19:02:20 -0000 Received: (sneakemail censored 22416-1439319740-523145 #1); 11 Aug 2015 19:02:20 -0000 Date: Tue, 11 Aug 2015 19:02:20 +0000 From: "Michael Hoffman" Message-ID: <22416-1439319740-523145@sneakemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: Perl5 Mail::Internet v X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) I can reproduce this with Emacs 24.5.2 on Linux using the instructions found in . Specifically: 1. emacs -Q 2. M-x icomplete-mode 3. M-x set-variable icomplete-show-matches-on-no-input t 4. C-x C-f C-a C-k I have now set `icomplete-show-matches-on-no-input` to `nil` and have not triggered the bug again. In GNU Emacs 24.5.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.8) of 2015-07-29 on mhoffman2.uhnres.utoronto.ca Windowing system distributor `The X.Org Foundation', version 11.0.11500000 System Description: CentOS Linux release 7.1.1503 (Core) Configured using: `configure --prefix=/users/mhoffman --exec-prefix=/users/mhoffman/arch/Linux-x86_64 'CFLAGS=-O2 -march=native -pipe -fomit-frame-pointer' LDFLAGS=-Wl,-O1' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: icomplete-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Icomplete mode enabled Error in post-command-hook (icomplete-post-command-hook): (invalid-function (#("./" 0 1 (face (completions-first-difference))) #("../" 0 1 (face (completions-first-difference))))) Quit Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-edit easymenu wid-edit cl-loaddefs cl-lib help-fns mule-util cus-start cus-load icomplete time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 90594 3758) (symbols 48 19313 0) (miscs 40 36 124) (strings 32 13452 4435) (string-bytes 1 370253) (vectors 16 10101) (vector-slots 8 392565 9391) (floats 8 71 91) (intervals 56 176 1) (buffers 960 11) (heap 1024 20881 916)) From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 25 20:40:20 2015 Received: (at control) by debbugs.gnu.org; 26 Dec 2015 01:40:20 +0000 Received: from localhost ([127.0.0.1]:36550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCdqG-000435-A1 for submit@debbugs.gnu.org; Fri, 25 Dec 2015 20:40:20 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:47345) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCdqE-00042x-AD for control@debbugs.gnu.org; Fri, 25 Dec 2015 20:40:18 -0500 Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aCdpt-0008W7-Mc for control@debbugs.gnu.org; Sat, 26 Dec 2015 02:39:57 +0100 Date: Sat, 26 Dec 2015 02:39:56 +0100 Message-Id: <87lh8idm37.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16274 X-MailScanner-ID: 1aCdpt-0008W7-Mc X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1451698797.9931@f07wWFUgvd4YrVa89Ayt1Q X-Spam-Status: No X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 16274 - moreinfo From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Dec 2015 03:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.14511012666710 (code B ref 16274); Sat, 26 Dec 2015 03:42:02 +0000 Received: (at 16274) by debbugs.gnu.org; 26 Dec 2015 03:41:06 +0000 Received: from localhost ([127.0.0.1]:36609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCfj8-0001kA-17 for submit@debbugs.gnu.org; Fri, 25 Dec 2015 22:41:06 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:33428) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCfj6-0001ja-J6 for 16274@debbugs.gnu.org; Fri, 25 Dec 2015 22:41:05 -0500 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id tBQ3evC6019194 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <16274@debbugs.gnu.org>; Sat, 26 Dec 2015 03:40:58 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id tBQ3euuJ030820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <16274@debbugs.gnu.org>; Sat, 26 Dec 2015 03:40:57 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id tBQ3etBI000460 for <16274@debbugs.gnu.org>; Sat, 26 Dec 2015 03:40:55 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 25 Dec 2015 19:40:56 -0800 (PST) From: Drew Adams References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <87zjlzei7q.fsf@building.gnus.org> <6d8c4718-3a26-4ede-8699-66997536721a@default> <00fca856-c9f0-4fe4-9b28-d2a4eb578980@default> <2cfcdeb6-62fe-458a-ac08-459e192b413b@default> In-Reply-To: <2cfcdeb6-62fe-458a-ac08-459e192b413b@default> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > FWIW, just got the error again, in this version: >=20 > In GNU Emacs 24.4.50.1 (i686-pc-mingw32) > of 2014-06-28 on ODIEONE > ... >=20 > Error in post-command-hook (icomplete-post-command-hook): > (cl-assertion-failed (functionp table)) FYI, I still get this error fairly often, in Emacs 25 builds. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 02 23:05:20 2017 Received: (at control) by debbugs.gnu.org; 3 Feb 2017 04:05:20 +0000 Received: from localhost ([127.0.0.1]:54393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZV7g-0004Jx-DK for submit@debbugs.gnu.org; Thu, 02 Feb 2017 23:05:20 -0500 Received: from mail-it0-f41.google.com ([209.85.214.41]:35970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZV7f-0004Jl-GC for control@debbugs.gnu.org; Thu, 02 Feb 2017 23:05:19 -0500 Received: by mail-it0-f41.google.com with SMTP id c7so4160335itd.1 for ; Thu, 02 Feb 2017 20:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=/hLBoXA4Nk2FUfeV90R9vc01t+HLqul1x3KIG1zz3/I=; b=Aabv3UzU299xk3KO90iE2Cv9RvelEiHZeO8u1fDMSEPBL9aCREgTz/mJEzfyySNAoU cI+CkESTM29a8xSMVYtaF6KdphpqwP4vY+RDkL20T9hqKuJtN9VktsiG0JQ3Ns56iVDq +yyK0/z09dNnLGgF5nuvslmuluMyGv0bnBpSnmLp0Ng2bDVryrDozkAiEjxszHyQETmD 6Be4628Yr9ERb/mwprKRD7wRuDJeiEsBCTmpZQF3XgDDqhcun1Pq9qLB2hkk+u1ixLoR Hmw2sdVbRwFVDDtzoEKkbR2d0HrT8tQIRzzJDUhoqu4CfFx8wxnXhiC02siFy7sKnCKe d+LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=/hLBoXA4Nk2FUfeV90R9vc01t+HLqul1x3KIG1zz3/I=; b=O2zMeJBE9CFa/FBHZYvDm8xS4jPnWGnQlvTt3W2QV/nWLuE7szKKME8NsHR0b745M1 t9qdz80/AR0ojPt9xsvfKACOdDkjYH6pjC5d98FUe4SeefYahu4pR02wAl+aeeqPSPTE ERU3NFJT8ew4UueApd8z6aE0WY2H/18mqQYJI/w0zyOEBMtlvTsgYcsWafH1C5TJ6qPH iTHlauGnx5hRFYOfvygMRl3SwBGmjzF6Nr/jj7HAvjW14O4OpQ/TtvqDVqziTioC3pP3 c86lkAJfOZYV2ZQ7G9UKd3f2yBCtPpNWQzHNUDDoxfboRAt/KooOqNCBfEr64Hr0x+SS AmoA== X-Gm-Message-State: AIkVDXLU/ALMeRpvOOKOGz+aPuAWcEMCN16UAyQul0LLphZ5A13bznckT4bz4X2Rqe/B0w== X-Received: by 10.36.60.198 with SMTP id m189mr650072ita.117.1486094714053; Thu, 02 Feb 2017 20:05:14 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id y138sm2049661iod.30.2017.02.02.20.05.13 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Feb 2017 20:05:13 -0800 (PST) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #16274 Date: Thu, 02 Feb 2017 23:06:23 -0500 Message-ID: <87fujvq5og.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) found 16274 25.1 tags 16274 confirmed quit From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Feb 2017 15:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: 16274@debbugs.gnu.org Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.148613699627504 (code B ref 16274); Fri, 03 Feb 2017 15:50:01 +0000 Received: (at 16274) by debbugs.gnu.org; 3 Feb 2017 15:49:56 +0000 Received: from localhost ([127.0.0.1]:55305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZg7Y-00079X-1l for submit@debbugs.gnu.org; Fri, 03 Feb 2017 10:49:56 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:28494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZg7W-00079J-5t for 16274@debbugs.gnu.org; Fri, 03 Feb 2017 10:49:54 -0500 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v13Fnl4R006067 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <16274@debbugs.gnu.org>; Fri, 3 Feb 2017 15:49:47 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v13FnllK021330 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <16274@debbugs.gnu.org>; Fri, 3 Feb 2017 15:49:47 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v13FnkAS018090 for <16274@debbugs.gnu.org>; Fri, 3 Feb 2017 15:49:46 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 3 Feb 2017 07:49:45 -0800 (PST) From: Drew Adams References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <87zjlzei7q.fsf@building.gnus.org> <6d8c4718-3a26-4ede-8699-66997536721a@default> <00fca856-c9f0-4fe4-9b28-d2a4eb578980@default> <2cfcdeb6-62fe-458a-ac08-459e192b413b@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) Now that this bug reported 4 years ago has been confirmed by someone else, = perhaps it can be fixed? Thx. From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Oct 2017 15:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Stefan Monnier Cc: 16274@debbugs.gnu.org, drew.adams@oracle.com Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.150868477928967 (code B ref 16274); Sun, 22 Oct 2017 15:07:01 +0000 Received: (at 16274) by debbugs.gnu.org; 22 Oct 2017 15:06:19 +0000 Received: from localhost ([127.0.0.1]:56025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6HpS-0007X9-Ru for submit@debbugs.gnu.org; Sun, 22 Oct 2017 11:06:19 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:58526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6HpQ-0007Wt-UA for 16274@debbugs.gnu.org; Sun, 22 Oct 2017 11:06:17 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 38D6622573 for <16274@debbugs.gnu.org>; Sun, 22 Oct 2017 14:59:22 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1508684360; x=1509548361; bh=GTxnvJ2UcxnGu rekJJrQxEGy5BYQ06T2ZXvo3jPT7kY=; b=jC5aZPZPCFp4z0OOdgp5yz7h44A+Q pddlsFMkTBijc+WsOxpMuEvmpgi7thrSs85V+dxBerm050PRld0znuABsg85EepU uAtbGMbbOIZq3fKyJxqXmSG2K1oNiirhNcCr2MFrE7GgmmlTOtbpDxc9CsaTqE5W CuXfligm1jSLdI= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Q-8aMdLnQtSe for <16274@debbugs.gnu.org>; Sun, 22 Oct 2017 14:59:20 +0000 (UTC) Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id A03D022564; Sun, 22 Oct 2017 14:59:17 +0000 (UTC) Date: Sun, 22 Oct 2017 17:06:35 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) In-reply-to: (message from Stefan Monnier on Fri, 03 Jan 2014 23:51:48 -0500) References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > From: Stefan Monnier > Date: Fri, 03 Jan 2014 23:51:48 -0500 > > > So far, my best guess is still that in > > (completion-try-completion name comps nil (length name) md) > > the list COMPS is for some reason being treated as a function (the > > second argument can of course be either). > > Oh, you mean that the error could come from the fact that `md' goes with > `candidates', so some code might assume that the completion table is > a function based on the `md' data, whereas we passed `comps' which is > a list of strings? > > Hmm... that sounds plausible. This seems to be the mistake. If you pass nil instead of `md' (as in the patch below), then there's no more problem. diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 038f58f..38be657 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -395,7 +395,7 @@ icomplete-completions ;; If the `comps' are 0-based, the result should be ;; the same with `comps'. (completion-try-completion - name comps nil (length name) md))) + name comps nil (length name) nil))) (most (if (consp most-try) (car most-try) (if most-try (car comps) ""))) ;; Compare name and most, so we can determine if name is Alternatively, this part of `completion--nth-completion' could be updated to respond to `completio--unquote-requote' in the completion metadata when `table' is not a function: (when (completion-metadata-get metadata 'completion--unquote-requote) (cl-assert (functionp table)) (let ((new (funcall table string point 'completion--unquote))) (No idea if that would make sense.) I was using this recipe for testing: > Date: Fri, 30 Jan 2015 14:25:04 +0000 > From: Jeremy Moore > > Hi folks, > > I get a similar error by following this sequence in 24.4.1: > 1. emacs -Q > 2. M-x icomplete-mode > 3. M-x set-variable icomplete-show-matches-on-no-input t > 4. C-x C-f C-a C-k > > Version and settings are below. > > Regards, > Jeremy > > In GNU Emacs 24.4.1 (i686-pc-mingw32) > of 2014-10-24 on LEG570 > Windowing system distributor `Microsoft Corp.', version 6.1.7601 > Configured using: > `configure --prefix=/c/usr' From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Nov 2017 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: charles@aurox.ch (Charles A. Roelli) Cc: 16274@debbugs.gnu.org, monnier@iro.umontreal.ca, drew.adams@oracle.com Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.150956644532694 (code B ref 16274); Wed, 01 Nov 2017 20:01:02 +0000 Received: (at 16274) by debbugs.gnu.org; 1 Nov 2017 20:00:45 +0000 Received: from localhost ([127.0.0.1]:46452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9zBs-0008VG-U0 for submit@debbugs.gnu.org; Wed, 01 Nov 2017 16:00:45 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:36670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9zBq-0008V0-U3 for 16274@debbugs.gnu.org; Wed, 01 Nov 2017 16:00:43 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 9F6402259D for <16274@debbugs.gnu.org>; Wed, 1 Nov 2017 19:53:39 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1509566016; x=1510430017; bh=bdNHKR4/iOIrn wBQBHGHpdwHXi0xM8V09nqgmIvyUwc=; b=KBUkpp0EG/XIZh2fgfiJoEo5v5fB+ tlAEZMPCmsO6vUxRG1YBxbKTpQni/4L4QoTBjm5zkR1ewVK1xF2m/vcTW25+76EW XBBmfYuzpv1aQzWhvrGSvPf2vrPOOSRpwum3JQSStPg7M1QOttsxoyjulhWy+kMB 9KPYdmtQPDrdhs= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xRtu62UbLwkh for <16274@debbugs.gnu.org>; Wed, 1 Nov 2017 19:53:36 +0000 (UTC) Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 345252259C; Wed, 1 Nov 2017 19:53:36 +0000 (UTC) Date: Wed, 01 Nov 2017 21:02:00 +0100 Message-Id: From: charles@aurox.ch (Charles A. Roelli) In-reply-to: (charles@aurox.ch) References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Ping! I hope to fix this for emacs-26 if it's possible. It also solves Bug#28898. > Date: Sun, 22 Oct 2017 17:06:35 +0200 > From: charles@aurox.ch (Charles A. Roelli) > > > From: Stefan Monnier > > Date: Fri, 03 Jan 2014 23:51:48 -0500 > > > > > So far, my best guess is still that in > > > (completion-try-completion name comps nil (length name) md) > > > the list COMPS is for some reason being treated as a function (the > > > second argument can of course be either). > > > > Oh, you mean that the error could come from the fact that `md' goes with > > `candidates', so some code might assume that the completion table is > > a function based on the `md' data, whereas we passed `comps' which is > > a list of strings? > > > > Hmm... that sounds plausible. > > This seems to be the mistake. If you pass nil instead of `md' (as in > the patch below), then there's no more problem. > > diff --git a/lisp/icomplete.el b/lisp/icomplete.el > index 038f58f..38be657 100644 > --- a/lisp/icomplete.el > +++ b/lisp/icomplete.el > @@ -395,7 +395,7 @@ icomplete-completions > ;; If the `comps' are 0-based, the result should be > ;; the same with `comps'. > (completion-try-completion > - name comps nil (length name) md))) > + name comps nil (length name) nil))) > (most (if (consp most-try) (car most-try) > (if most-try (car comps) ""))) > ;; Compare name and most, so we can determine if name is > > Alternatively, this part of `completion--nth-completion' could be > updated to respond to `completio--unquote-requote' in the completion > metadata when `table' is not a function: > > (when (completion-metadata-get metadata 'completion--unquote-requote) > (cl-assert (functionp table)) > (let ((new (funcall table string point 'completion--unquote))) > > (No idea if that would make sense.) > > I was using this recipe for testing: > > > Date: Fri, 30 Jan 2015 14:25:04 +0000 > > From: Jeremy Moore > > > > Hi folks, > > > > I get a similar error by following this sequence in 24.4.1: > > 1. emacs -Q > > 2. M-x icomplete-mode > > 3. M-x set-variable icomplete-show-matches-on-no-input t > > 4. C-x C-f C-a C-k > > > > Version and settings are below. > > > > Regards, > > Jeremy > > > > In GNU Emacs 24.4.1 (i686-pc-mingw32) > > of 2014-10-24 on LEG570 > > Windowing system distributor `Microsoft Corp.', version 6.1.7601 > > Configured using: > > `configure --prefix=/c/usr' From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Nov 2017 08:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: charles@aurox.ch (Charles A. Roelli) Cc: 16274@debbugs.gnu.org, monnier@iro.umontreal.ca Reply-To: Eli Zaretskii Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.150978579615267 (code B ref 16274); Sat, 04 Nov 2017 08:57:02 +0000 Received: (at 16274) by debbugs.gnu.org; 4 Nov 2017 08:56:36 +0000 Received: from localhost ([127.0.0.1]:50144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAuFo-0003yA-EL for submit@debbugs.gnu.org; Sat, 04 Nov 2017 04:56:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAuFm-0003xy-Js for 16274@debbugs.gnu.org; Sat, 04 Nov 2017 04:56:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAuFg-00010F-KR for 16274@debbugs.gnu.org; Sat, 04 Nov 2017 04:56:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAuFa-0000wL-BK; Sat, 04 Nov 2017 04:56:22 -0400 Received: from [176.228.60.248] (port=3399 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eAuFZ-0004B7-Ly; Sat, 04 Nov 2017 04:56:22 -0400 Date: Sat, 04 Nov 2017 10:56:22 +0200 Message-Id: <83zi82toax.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (charles@aurox.ch) References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Wed, 01 Nov 2017 21:02:00 +0100 > From: charles@aurox.ch (Charles A. Roelli) > Cc: 16274@debbugs.gnu.org, monnier@iro.umontreal.ca > > Ping! I hope to fix this for emacs-26 if it's possible. It also > solves Bug#28898. Stefan, any objections for pushing this to the emacs-26 branch? From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Nov 2017 04:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Eli Zaretskii Cc: 16274@debbugs.gnu.org, "Charles A. Roelli" Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.15100275997877 (code B ref 16274); Tue, 07 Nov 2017 04:07:01 +0000 Received: (at 16274) by debbugs.gnu.org; 7 Nov 2017 04:06:39 +0000 Received: from localhost ([127.0.0.1]:55028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBv9r-00022y-2h for submit@debbugs.gnu.org; Mon, 06 Nov 2017 23:06:39 -0500 Received: from pmta31.teksavvy.com ([76.10.157.38]:24941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBv9o-00022i-Qk for 16274@debbugs.gnu.org; Mon, 06 Nov 2017 23:06:37 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2EQBAAAMAFa/4XnjBhcHAEBBAEBCgEBgzSBUp9gE5hECoU7AoRpQxQBAQEBAQEBAQEDaCiFHwEEAXkQCw0nBwsUGDGKLgirfCECinEBAQEBBgIBJYMuggeGZosIBZFegROPHaBjKIcllhmBOTYigWw0IQgySYJlgxAZgVMjjQIBAQE X-IPAS-Result: A2EQBAAAMAFa/4XnjBhcHAEBBAEBCgEBgzSBUp9gE5hECoU7AoRpQxQBAQEBAQEBAQEDaCiFHwEEAXkQCw0nBwsUGDGKLgirfCECinEBAQEBBgIBJYMuggeGZosIBZFegROPHaBjKIcllhmBOTYigWw0IQgySYJlgxAZgVMjjQIBAQE X-IronPort-AV: E=Sophos;i="5.44,356,1505793600"; d="scan'208";a="8331588" Received: from unknown (HELO fmsmemgm.homelinux.net) ([24.140.231.133]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2017 23:06:29 -0500 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 52104AE084; Mon, 6 Nov 2017 23:06:26 -0500 (EST) From: Stefan Monnier Message-ID: References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <83zi82toax.fsf@gnu.org> Date: Mon, 06 Nov 2017 23:06:26 -0500 In-Reply-To: <83zi82toax.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Nov 2017 10:56:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> Ping! I hope to fix this for emacs-26 if it's possible. It also >> solves Bug#28898. > Stefan, any objections for pushing this to the emacs-26 branch? Yes, using nil instead of `md` has other undesirable side-effects. E.g. it loses the `category` metadata so it will cause the wrong completion-styles to be used e.g. in C-x b. Does the patch below work around the problem? BTW, thanks Charles for the recipe, Stefan diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index f13f1fa798..54a6afeca9 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -896,8 +896,15 @@ completion--nth-completion ;; than from completion-extra-properties) because it may apply only to some ;; part of the string (e.g. substitute-in-file-name). (let ((requote - (when (completion-metadata-get metadata 'completion--unquote-requote) - (cl-assert (functionp table)) + (when (and + (completion-metadata-get metadata 'completion--unquote-requote) + ;; Sometimes a table's metadata is used on another + ;; table (typically that other table is just a list taken + ;; from the output of `all-completions' or something equivalent, + ;; for progressive refinement). + ;; FIXME: Rather than do nothing, we should somehow call + ;; the original table, in that case! + (functionp table)) (let ((new (funcall table string point 'completion--unquote))) (setq string (pop new)) (setq table (pop new)) From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Nov 2017 10:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Stefan Monnier Cc: 16274@debbugs.gnu.org, charles@aurox.ch Reply-To: Eli Zaretskii Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.151039495131709 (code B ref 16274); Sat, 11 Nov 2017 10:10:02 +0000 Received: (at 16274) by debbugs.gnu.org; 11 Nov 2017 10:09:11 +0000 Received: from localhost ([127.0.0.1]:34742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDSis-0008FM-QK for submit@debbugs.gnu.org; Sat, 11 Nov 2017 05:09:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDSir-0008F9-6H for 16274@debbugs.gnu.org; Sat, 11 Nov 2017 05:09:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDSih-00050H-Tx for 16274@debbugs.gnu.org; Sat, 11 Nov 2017 05:09:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDSih-00050D-QG; Sat, 11 Nov 2017 05:08:59 -0500 Received: from [176.228.60.248] (port=1920 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eDSih-0007pp-0t; Sat, 11 Nov 2017 05:08:59 -0500 Date: Sat, 11 Nov 2017 12:09:00 +0200 Message-Id: <83y3ndnn43.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Stefan Monnier on Mon, 06 Nov 2017 23:06:26 -0500) References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <83zi82toax.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Stefan Monnier > Cc: charles@aurox.ch (Charles A. Roelli), 16274@debbugs.gnu.org > Date: Mon, 06 Nov 2017 23:06:26 -0500 > > >> Ping! I hope to fix this for emacs-26 if it's possible. It also > >> solves Bug#28898. > > Stefan, any objections for pushing this to the emacs-26 branch? > > Yes, using nil instead of `md` has other undesirable side-effects. > E.g. it loses the `category` metadata so it will cause the wrong > completion-styles to be used e.g. in C-x b. > > Does the patch below work around the problem? Ping! Charles, any comments? From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Nov 2017 10:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Eli Zaretskii Cc: 16274@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.15103963241449 (code B ref 16274); Sat, 11 Nov 2017 10:33:02 +0000 Received: (at 16274) by debbugs.gnu.org; 11 Nov 2017 10:32:04 +0000 Received: from localhost ([127.0.0.1]:34756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDT52-0000NJ-2Y for submit@debbugs.gnu.org; Sat, 11 Nov 2017 05:32:04 -0500 Received: from sinyavsky.aurox.ch ([37.35.109.145]:42420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDT50-0000Ml-Oe for 16274@debbugs.gnu.org; Sat, 11 Nov 2017 05:32:03 -0500 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id EBF09225B9 for <16274@debbugs.gnu.org>; Sat, 11 Nov 2017 10:24:47 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1510395884; x=1511259885; bh=ZzX1AMt8nZZS2 twlXMUSPwXkD1Z6sisC+RyZWm+1+QQ=; b=akOFeTwT26rYrtykZnwP4Y3IzRr2X wiDyYXQaXJjdXeSMdAi/CA4DvVa/4DKmilrboborUFYY4cbsl9UJCmioqY6/n2ur 1TMudS4Dm7ZzROoY5jdQsjBr/5K6p/Vjv9BMhZAKf8/0r96uS0oD7qVNgEcL2cOm FX69ti/vz+VQ24= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id J9bSNeidVpHh for <16274@debbugs.gnu.org>; Sat, 11 Nov 2017 10:24:44 +0000 (UTC) Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id A6430225A8; Sat, 11 Nov 2017 10:24:43 +0000 (UTC) Date: Sat, 11 Nov 2017 11:31:45 +0100 Message-Id: From: charles@aurox.ch (Charles A. Roelli) In-reply-to: <83y3ndnn43.fsf@gnu.org> (message from Eli Zaretskii on Sat, 11 Nov 2017 12:09:00 +0200) References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <83zi82toax.fsf@gnu.org> <83y3ndnn43.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > Date: Sat, 11 Nov 2017 12:09:00 +0200 > From: Eli Zaretskii > > > From: Stefan Monnier > > Cc: charles@aurox.ch (Charles A. Roelli), 16274@debbugs.gnu.org > > Date: Mon, 06 Nov 2017 23:06:26 -0500 > > > > >> Ping! I hope to fix this for emacs-26 if it's possible. It also > > >> solves Bug#28898. > > > Stefan, any objections for pushing this to the emacs-26 branch? > > > > Yes, using nil instead of `md` has other undesirable side-effects. > > E.g. it loses the `category` metadata so it will cause the wrong > > completion-styles to be used e.g. in C-x b. > > > > Does the patch below work around the problem? > > Ping! Charles, any comments? All good. Thanks to both of you for looking into this. From unknown Mon Jun 23 02:25:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Nov 2017 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: charles@aurox.ch (Charles A. Roelli) Cc: 16274@debbugs.gnu.org, monnier@iro.umontreal.ca Reply-To: Eli Zaretskii Received: via spool by 16274-submit@debbugs.gnu.org id=B16274.15103968982296 (code B ref 16274); Sat, 11 Nov 2017 10:42:02 +0000 Received: (at 16274) by debbugs.gnu.org; 11 Nov 2017 10:41:38 +0000 Received: from localhost ([127.0.0.1]:34761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDTEH-0000ax-1r for submit@debbugs.gnu.org; Sat, 11 Nov 2017 05:41:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDTEF-0000aj-E2 for 16274@debbugs.gnu.org; Sat, 11 Nov 2017 05:41:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDTE6-0002KZ-9f for 16274@debbugs.gnu.org; Sat, 11 Nov 2017 05:41:30 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDTE6-0002KL-6O; Sat, 11 Nov 2017 05:41:26 -0500 Received: from [176.228.60.248] (port=1972 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eDTE5-0005th-K8; Sat, 11 Nov 2017 05:41:26 -0500 Date: Sat, 11 Nov 2017 12:41:27 +0200 Message-Id: <83r2t5nlm0.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (charles@aurox.ch) References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <83zi82toax.fsf@gnu.org> <83y3ndnn43.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sat, 11 Nov 2017 11:31:45 +0100 > From: charles@aurox.ch (Charles A. Roelli) > CC: monnier@iro.umontreal.ca, 16274@debbugs.gnu.org > > > Date: Sat, 11 Nov 2017 12:09:00 +0200 > > From: Eli Zaretskii > > > > > From: Stefan Monnier > > > Cc: charles@aurox.ch (Charles A. Roelli), 16274@debbugs.gnu.org > > > Date: Mon, 06 Nov 2017 23:06:26 -0500 > > > > > > >> Ping! I hope to fix this for emacs-26 if it's possible. It also > > > >> solves Bug#28898. > > > > Stefan, any objections for pushing this to the emacs-26 branch? > > > > > > Yes, using nil instead of `md` has other undesirable side-effects. > > > E.g. it loses the `category` metadata so it will cause the wrong > > > completion-styles to be used e.g. in C-x b. > > > > > > Does the patch below work around the problem? > > > > Ping! Charles, any comments? > > All good. Thanks to both of you for looking into this. Thanks. Stefan, please install your changes and close the bug. From unknown Mon Jun 23 02:25:25 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Drew Adams Subject: bug#16274: closed (Re: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...))) Message-ID: References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> X-Gnu-PR-Message: they-closed 16274 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: confirmed Reply-To: 16274@debbugs.gnu.org Date: Sat, 11 Nov 2017 15:26:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1510413962-4547-1" This is a multi-part message in MIME format... ------------=_1510413962-4547-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): = (invalid-function ("..." ...)) which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 16274@debbugs.gnu.org. --=20 16274: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16274 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1510413962-4547-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 16274-done) by debbugs.gnu.org; 11 Nov 2017 15:25:57 +0000 Received: from localhost ([127.0.0.1]:35497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDXfR-0001B3-Ah for submit@debbugs.gnu.org; Sat, 11 Nov 2017 10:25:57 -0500 Received: from pmta11.teksavvy.com ([76.10.157.34]:11937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDXfP-0001Ap-7F for 16274-done@debbugs.gnu.org; Sat, 11 Nov 2017 10:25:55 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FBBABEFgda/8DOSC1cHAEBAQQBAQoBA?= =?us-ascii?q?YM1gVKdb4F9FJY8ghEKhTsChEZAFwEBAQEBAQEBAQNoKIUfAQQBeRALDScHCxQ?= =?us-ascii?q?YMYotCKx5IQKKaQEBAQEGAgElgzSCB4Zoiw8FknuPL5cAAYlvKIculiSBOSEBN?= =?us-ascii?q?oFyNCEIMoMugxAZgVMjikcBAQE?= X-IPAS-Result: =?us-ascii?q?A2FBBABEFgda/8DOSC1cHAEBAQQBAQoBAYM1gVKdb4F9FJY?= =?us-ascii?q?8ghEKhTsChEZAFwEBAQEBAQEBAQNoKIUfAQQBeRALDScHCxQYMYotCKx5IQKKa?= =?us-ascii?q?QEBAQEGAgElgzSCB4Zoiw8FknuPL5cAAYlvKIculiSBOSEBNoFyNCEIMoMugxA?= =?us-ascii?q?ZgVMjikcBAQE?= X-IronPort-AV: E=Sophos;i="5.44,378,1505793600"; d="scan'208";a="9124246" Received: from unknown (HELO fmsmemgm.homelinux.net) ([45.72.206.192]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Nov 2017 10:25:44 -0500 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id BE2C2AE113; Sat, 11 Nov 2017 10:25:43 -0500 (EST) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) Message-ID: References: <0d02f1f6-f984-4da4-b077-43408a24c046@default> <26aaf609-dcdc-4585-ae7e-55e7f7025947@default> <83zi82toax.fsf@gnu.org> <83y3ndnn43.fsf@gnu.org> <83r2t5nlm0.fsf@gnu.org> Date: Sat, 11 Nov 2017 10:25:43 -0500 In-Reply-To: <83r2t5nlm0.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 11 Nov 2017 12:41:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16274-done Cc: "Charles A. Roelli" , 16274-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> All good. Thanks to both of you for looking into this. Thanks, installed, Stefan ------------=_1510413962-4547-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Dec 2013 05:52:57 +0000 Received: from localhost ([127.0.0.1]:47631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwmpV-00047Q-0x for submit@debbugs.gnu.org; Sat, 28 Dec 2013 00:52:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51455) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwmpT-00047G-45 for submit@debbugs.gnu.org; Sat, 28 Dec 2013 00:52:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwmpJ-0004VQ-0d for submit@debbugs.gnu.org; Sat, 28 Dec 2013 00:52:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwmpI-0004VM-Td for submit@debbugs.gnu.org; Sat, 28 Dec 2013 00:52:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwmpA-0000O7-B7 for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 00:52:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vwmow-0004Tl-EN for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 00:52:36 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:27769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vwmow-0004TT-6k for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 00:52:22 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBS5qJkt031378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 28 Dec 2013 05:52:20 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBS5qIL2028474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 28 Dec 2013 05:52:19 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBS5qI5e026653 for ; Sat, 28 Dec 2013 05:52:18 GMT MIME-Version: 1.0 Message-ID: <0d02f1f6-f984-4da4-b077-43408a24c046@default> Date: Fri, 27 Dec 2013 21:52:13 -0800 (PST) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...)) X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I believe I reported long ago (in the Emacs 24 cycle, IIRC) that I occasionally get this error. This is still the case. The value it complains about not being a function is a list of completions (strings), which each have text property `face' with values `completions-common-part' and `(completions-first-difference)' (a list). I haven't been able to see where in the code this error could occur. I have noticed it being raised with my setup (icomplete+.el). Dunno whether it occurs also in emacs -Q. FWIW, my code does not even reference `icomplete-post-command-hook' explicitly, and it does not use those particular faces explicitly. I also have not been able to find the code that issues that error message. Perhaps it is in some C code - the latest C code I have is for Emacs 24.3. A wild guess about this is that the list of completions is the cached value in variable `completion-all-sorted-completions'. And perhaps in code like this: (completion-try-completion name comps nil (length name) md) Maybe COMPS here (which is the value of `completion-all-sorted-completions') is somehow expected to be a function? Does this ring a bell for anyone? Just poking in the dark. Dunno how to debug this better. The error message does not stop execution, being on `post-command-hook'. It just flashes ephemerally and then I can find it in `*Messages*'. And, again, it seems that this happens just once in a while. If this info does not help at all, feel free to close the bug. Or leave it open, for future reference. It has been there for a while now. In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-12-27 on ODIEONE Bzr revision: 115778 rgm@gnu.org-20131228000456-1797o8z6veuyozs0 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/binary --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib CPPFLAGS=3D-Ic:/Devel/emacs/include' ------------=_1510413962-4547-1--