From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#55712: 29.0.50; Bad interaction between icomplete and completion-auto-select. Date: Sun, 29 May 2022 22:55:25 +0300 Organization: LINKOV.NET Message-ID: <86a6b0un9u.fsf@mail.linkov.net> References: <87a6b0gp9g.fsf@dell.mail-host-address-is-not-set> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22831"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 55712@debbugs.gnu.org To: Knut Anders Hatlen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 29 21:57:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvP2D-0005o5-Vo for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 May 2022 21:57:09 +0200 Original-Received: from localhost ([::1]:43514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvP2C-0007dB-Gy for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 May 2022 15:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvP26-0007cl-Hj for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 15:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvP26-0004G2-5r for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 15:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nvP25-000697-St for bug-gnu-emacs@gnu.org; Sun, 29 May 2022 15:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 May 2022 19:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55712 X-GNU-PR-Package: emacs Original-Received: via spool by 55712-submit@debbugs.gnu.org id=B55712.165385419623565 (code B ref 55712); Sun, 29 May 2022 19:57:01 +0000 Original-Received: (at 55712) by debbugs.gnu.org; 29 May 2022 19:56:36 +0000 Original-Received: from localhost ([127.0.0.1]:41998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvP1f-00067z-Mw for submit@debbugs.gnu.org; Sun, 29 May 2022 15:56:35 -0400 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:36135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvP1c-00067e-Ua for 55712@debbugs.gnu.org; Sun, 29 May 2022 15:56:33 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 8F7F4200003; Sun, 29 May 2022 19:56:25 +0000 (UTC) In-Reply-To: <87a6b0gp9g.fsf@dell.mail-host-address-is-not-set> (Knut Anders Hatlen's message of "Sun, 29 May 2022 20:36:11 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:233344 Archived-At: > (icomplete-mode 1) > (setopt completion-auto-select t) > C-x C-f TAB TAB > > The following error message is displayed in the minibuffer: > > Error in post-command-hook (icomplete-post-command-hook): (wrong-type-argument integer-or-marker-p nil) I confirm the problem, I have seen it a few times, but it seems the root of the problem is in the way how buffer-local hooks are fired. icomplete-post-command-hook is a hook local in the minibuffer. But when the command switches from the minibuffer to the Completions buffer, then for an unknown reason the minibuffer post-command hook is still fired in another buffer - in the Completions buffer that has no local post-command hook.