GNU bug report logs - #55712
29.0.50; Bad interaction between icomplete and completion-auto-select.

Previous Next

Package: emacs;

Reported by: Knut Anders Hatlen <kahatlen <at> gmail.com>

Date: Sun, 29 May 2022 18:37:01 UTC

Severity: normal

Fixed in version 29.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: Knut Anders Hatlen <kahatlen <at> gmail.com>
Cc: 55712 <at> debbugs.gnu.org
Subject: Re: bug#55712: 29.0.50; Bad interaction between icomplete and
 completion-auto-select.
Date: Sun, 29 May 2022 22:55:25 +0300
> (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.




This bug report was last modified 2 years and 289 days ago.

Previous Next


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