GNU bug report logs - #16274
24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...))

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sat, 28 Dec 2013 05:53:02 UTC

Severity: normal

Tags: confirmed

Found in versions 25.1, 24.3.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#16274: closed (24.3.50; Error in post-command-hook
 (icomplete-post-command-hook): (invalid-function ("..." ...)))
Date: Sat, 11 Nov 2017 15:26:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 11 Nov 2017 10:25:43 -0500
with message-id <jwvmv3sx2fq.fsf-monnier+emacsbugs <at> gnu.org>
and subject line Re: bug#16274: 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...))
has caused the debbugs.gnu.org bug report #16274,
regarding 24.3.50; Error in post-command-hook (icomplete-post-command-hook): (invalid-function ("..." ...))
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
16274: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16274
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; Error in post-command-hook (icomplete-post-command-hook):
 (invalid-function ("..." ...))
Date: Fri, 27 Dec 2013 21:52:13 -0800 (PST)
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 <at> gnu.org-20131228000456-1797o8z6veuyozs0
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 'CFLAGS=-O0 -g3' LDFLAGS=-Lc:/Devel/emacs/lib
 CPPFLAGS=-Ic:/Devel/emacs/include'


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "Charles A. Roelli" <charles <at> aurox.ch>, 16274-done <at> debbugs.gnu.org
Subject: Re: bug#16274: 24.3.50;
 Error in post-command-hook (icomplete-post-command-hook):
 (invalid-function ("..." ...))
Date: Sat, 11 Nov 2017 10:25:43 -0500
>> All good.  Thanks to both of you for looking into this.

Thanks, installed,


        Stefan


This bug report was last modified 7 years and 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.