GNU bug report logs - #32157
Emacs 26.1.50: Error in post-command-hook (icomplete-post-command-hook): (void-function set-message-beep)

Previous Next

Package: emacs;

Reported by: net june <netjune <at> outlook.com>

Date: Sat, 14 Jul 2018 15:54:01 UTC

Severity: normal

Merged with 6997, 31148

Found in versions 24.0.50, 26.1

Fixed in version 27.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32157 in the body.
You can then email your comments to 32157 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Sat, 14 Jul 2018 15:54:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to net june <netjune <at> outlook.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 14 Jul 2018 15:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: net june <netjune <at> outlook.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Sat, 14 Jul 2018 11:58:39 +0000
emacs: 26.1.50
OS: centos 7 x86_64

1. copy "w32-register-hot-key" to clipboard
2. emacs -Q
3. C-h f or M-x describe-function
4. use C-y to paste the content in clipboard to minibuffer, and press Enter
5. emacs error: Error in post-command-hook 
(icomplete-post-command-hook): (void-function set-message-beep)

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Sat, 14 Jul 2018 15:59:01 GMT) Full text and rfc822 format available.

Message #8 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: net june <netjune <at> outlook.com>
Cc: 32157 <at> debbugs.gnu.org
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Sat, 14 Jul 2018 18:58:33 +0300
> From: net june <netjune <at> outlook.com>
> Date: Sat, 14 Jul 2018 11:58:39 +0000
> 
> emacs: 26.1.50
> OS: centos 7 x86_64
> 
> 1. copy "w32-register-hot-key" to clipboard
> 2. emacs -Q
> 3. C-h f or M-x describe-function
> 4. use C-y to paste the content in clipboard to minibuffer, and press Enter
> 5. emacs error: Error in post-command-hook 
> (icomplete-post-command-hook): (void-function set-message-beep)

I cannot reproduce this.  I tried on GNU/Linux and on MS-Windows, and
I get the expected results on each one of them.

I also wonder where did that icomplete-post-command-hook come from in
"emacs -Q".  Icomplete mode is supposed to be disabled in "emacs -Q".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Sat, 14 Jul 2018 16:06:02 GMT) Full text and rfc822 format available.

Message #11 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: net june <netjune <at> outlook.com>, 32157 <at> debbugs.gnu.org
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Sat, 14 Jul 2018 12:04:51 -0400
I imagine this is fixed on master by 109a3bf6a1.
(ie, a duplicate of bug#6997).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Sat, 14 Jul 2018 16:28:02 GMT) Full text and rfc822 format available.

Message #14 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: netjune <at> outlook.com, 32157 <at> debbugs.gnu.org
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Sat, 14 Jul 2018 19:27:32 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: net june <netjune <at> outlook.com>,  32157 <at> debbugs.gnu.org
> Date: Sat, 14 Jul 2018 12:04:51 -0400
> 
> 
> I imagine this is fixed on master by 109a3bf6a1.
> (ie, a duplicate of bug#6997).

Ah, yes.  Then we should close this, I think.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Sun, 15 Jul 2018 03:31:02 GMT) Full text and rfc822 format available.

Message #17 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: net june <netjune <at> outlook.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "32157 <at> debbugs.gnu.org" <32157 <at> debbugs.gnu.org>
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Sun, 15 Jul 2018 03:29:47 +0000

On 07/14/2018 11:58 PM, Eli Zaretskii wrote:

> I also wonder where did that icomplete-post-command-hook come from in
> "emacs -Q".  Icomplete mode is supposed to be disabled in "emacs -Q".
> 
Copied from mail in emacs-devel to make this clear:

Note:
The error message is not right in the original mail. That error message
was copied from another emacs session( not "emacs -Q"). The error
message in this mail(in the step 4) is the right one. Sorry for the mistake.


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Sun, 15 Jul 2018 03:48:02 GMT) Full text and rfc822 format available.

Message #20 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: net june <netjune <at> outlook.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "32157 <at> debbugs.gnu.org" <32157 <at> debbugs.gnu.org>
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Sun, 15 Jul 2018 03:47:21 +0000

On 07/14/2018 11:58 PM, Eli Zaretskii wrote:

> I cannot reproduce this.  I tried on GNU/Linux and on MS-Windows, and
> I get the expected results on each one of them.
> 

I just pull the latest version from emacs git repo, and run "git clean 
-f -x -d" to clean up. Then config with command:

CFLAG=-O2 ./configure --prefix=/home/jun/apps/emacs-26 
--without-makeinfo --with-x-toolkit=gtk3 --with-modules

and make with command:
make && make install

The problem still exists.

> Also can be reproduced by following steps:
> 1. emacs -Q
> 2. C-h f or M-x describe-function
> 3. input "w32-<TAB>" where <TAB> is pressing the tab key
> 4. emacs error: byte-code: Symbol’s function definition is void: 
> set-message-beep

In step 3, it seems that ONLY THE FIRST tab key produce the error 
message for a emacs instance. Pressing the tab key twice, it will show 
the completion window with content as following:

------------------------------------------------------------------
Click on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
w32-check-shell-configuration 	w32-convert-standard-filename
w32-get-valid-locale-ids 	w32-list-locales
w32-set-default-process-coding-system 	w32-set-system-coding-system
w32-shell-dos-semantics 	w32-shell-name
w32-system-shell-p

-------------------------------------------------

Why these symbols are visible on GNU/Linux? Is there something wrong 
with my build commands?


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Sun, 15 Jul 2018 04:00:02 GMT) Full text and rfc822 format available.

Message #23 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: net june <netjune <at> outlook.com>
To: Glenn Morris <rgm <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org>
Cc: "32157 <at> debbugs.gnu.org" <32157 <at> debbugs.gnu.org>
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Sun, 15 Jul 2018 03:58:56 +0000

On 07/15/2018 12:04 AM, Glenn Morris wrote:
> 
> I imagine this is fixed on master by 109a3bf6a1.
> (ie, a duplicate of bug#6997).
> 

It is fixed on master, not on emacs-26. Can you backport it to emacs-26?

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Sun, 15 Jul 2018 15:40:03 GMT) Full text and rfc822 format available.

Message #26 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: net june <netjune <at> outlook.com>
Cc: rgm <at> gnu.org, 32157 <at> debbugs.gnu.org
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Sun, 15 Jul 2018 17:34:14 +0300
> From: net june <netjune <at> outlook.com>
> CC: "32157 <at> debbugs.gnu.org" <32157 <at> debbugs.gnu.org>
> Date: Sun, 15 Jul 2018 03:58:56 +0000
> 
> On 07/15/2018 12:04 AM, Glenn Morris wrote:
> > 
> > I imagine this is fixed on master by 109a3bf6a1.
> > (ie, a duplicate of bug#6997).
> > 
> 
> It is fixed on master, not on emacs-26. Can you backport it to emacs-26?

No, it's too extensive, and the problem itself is not important
enough, I think (why would a GNU/Linux user want to display help on
Windows-specific features?).  The emacs-26 branch is for fixing bugs
that are either serious/urgent or which were caused by recent
regressions.




Forcibly Merged 6997 31148 32157. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 15 Jul 2018 17:36:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Mon, 16 Jul 2018 03:22:02 GMT) Full text and rfc822 format available.

Message #31 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: net june <netjune <at> outlook.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "rgm <at> gnu.org" <rgm <at> gnu.org>,
 "32157 <at> debbugs.gnu.org" <32157 <at> debbugs.gnu.org>
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Mon, 16 Jul 2018 03:21:33 +0000

On 07/15/2018 10:34 PM, Eli Zaretskii wrote:
>> From: net june <netjune <at> outlook.com>
>> CC: "32157 <at> debbugs.gnu.org" <32157 <at> debbugs.gnu.org>
>> Date: Sun, 15 Jul 2018 03:58:56 +0000
>>
>> On 07/15/2018 12:04 AM, Glenn Morris wrote:
>>>
>>> I imagine this is fixed on master by 109a3bf6a1.
>>> (ie, a duplicate of bug#6997).
>>>
>>
>> It is fixed on master, not on emacs-26. Can you backport it to emacs-26?
> 
> No, it's too extensive, and the problem itself is not important
> enough, I think (why would a GNU/Linux user want to display help on
> Windows-specific features?).  The emacs-26 branch is for fixing bugs
> that are either serious/urgent or which were caused by recent
> regressions.
> 

OK. No perfect product. I can stay with it.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Mon, 16 Jul 2018 03:24:01 GMT) Full text and rfc822 format available.

Message #34 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: net june <netjune <at> outlook.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "rgm <at> gnu.org" <rgm <at> gnu.org>,
 "32157 <at> debbugs.gnu.org" <32157 <at> debbugs.gnu.org>
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Mon, 16 Jul 2018 03:23:44 +0000

On 07/15/2018 10:34 PM, Eli Zaretskii wrote:
>> From: net june <netjune <at> outlook.com>
>> CC: "32157 <at> debbugs.gnu.org" <32157 <at> debbugs.gnu.org>
>> Date: Sun, 15 Jul 2018 03:58:56 +0000
>>
>> On 07/15/2018 12:04 AM, Glenn Morris wrote:
>>>
>>> I imagine this is fixed on master by 109a3bf6a1.
>>> (ie, a duplicate of bug#6997).
>>>
>>
>> It is fixed on master, not on emacs-26. Can you backport it to emacs-26?
> 
> No, it's too extensive, and the problem itself is not important
> enough, I think (why would a GNU/Linux user want to display help on
> Windows-specific features?).  The emacs-26 branch is for fixing bugs
> that are either serious/urgent or which were caused by recent
> regressions.
> 

But how to prevent others to report same bug? The easy way may be fixing 
it. :)

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Mon, 16 Jul 2018 14:19:02 GMT) Full text and rfc822 format available.

Message #37 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: net june <netjune <at> outlook.com>
Cc: rgm <at> gnu.org, 32157 <at> debbugs.gnu.org
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Mon, 16 Jul 2018 17:18:52 +0300
> From: net june <netjune <at> outlook.com>
> CC: "rgm <at> gnu.org" <rgm <at> gnu.org>, "32157 <at> debbugs.gnu.org"
> 	<32157 <at> debbugs.gnu.org>
> Date: Mon, 16 Jul 2018 03:23:44 +0000
> 
> But how to prevent others to report same bug? The easy way may be fixing 
> it. :)

We did fix it: on the master branch.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Tue, 17 Jul 2018 20:30:02 GMT) Full text and rfc822 format available.

Message #40 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: Rolf Ade <rolf <at> pointsman.de>
To: net june <netjune <at> outlook.com>
Cc: Glenn Morris <rgm <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org>,
 "32157 <at> debbugs.gnu.org" <32157 <at> debbugs.gnu.org>
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Tue, 17 Jul 2018 22:28:57 +0200
FWIW, while I see the reported error with net junes recipt with
emacs-26.1 on linux (an older SuSE) ...

net june <netjune <at> outlook.com> writes:
> I just pull the latest version from emacs git repo, and run "git clean 
> -f -x -d" to clean up. Then config with command:
>
> CFLAG=-O2 ./configure --prefix=/home/jun/apps/emacs-26 
> --without-makeinfo --with-x-toolkit=gtk3 --with-modules
>
> and make with command:
> make && make install
>
> The problem still exists.

... I can't confirm this. A just freshly build emacs-27.0.50.2 doesn't
raise error for me on the same box with the recipt.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32157; Package emacs. (Wed, 18 Jul 2018 01:25:02 GMT) Full text and rfc822 format available.

Message #43 received at 32157 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: net june <netjune <at> outlook.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>,
 "32157 <at> debbugs.gnu.org" <32157 <at> debbugs.gnu.org>
Subject: Re: bug#32157: Emacs 26.1.50: Error in post-command-hook
 (icomplete-post-command-hook): (void-function set-message-beep)
Date: Tue, 17 Jul 2018 21:24:54 -0400
> In step 3, it seems that ONLY THE FIRST tab key produce the error 
> message for a emacs instance. Pressing the tab key twice, it will show 
> the completion window with content as following:

In my tests, the first TAB already brings up the completion you describe
(and doesn't signal any error).

> Why these symbols are visible on GNU/Linux?

Because these are functions defined in Elisp files available in
load-path, so they can be loaded (and you can subsequently call them)
even on GNU/Linux (at that point, they likely won't work as expected
because their implementation depends on underlying features only
provided by the w32 part of the C code).

In some unlikely hypothetical future, they could even be useful if we
can manage to build a GNU/Linux version of Emacs which links with Wine
to display w32 frames.

> Is there something wrong with my build commands?

No,


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 15 Aug 2018 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 305 days ago.

Previous Next


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