GNU bug report logs - #80064
31.0.50; eager-update fails to update, leaving an empty *Completions* buffer

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Daniel Mendler <mail@HIDDEN>; Done: Juri Linkov <juri@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug marked as fixed in version 31.0.50, send any further explanations to 80064 <at> debbugs.gnu.org and Daniel Mendler <mail@HIDDEN> Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 80064 <at> debbugs.gnu.org:


Received: (at 80064) by debbugs.gnu.org; 19 Jan 2026 18:29:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 19 13:29:27 2026
Received: from localhost ([127.0.0.1]:49107 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vhu0F-000282-1I
	for submit <at> debbugs.gnu.org; Mon, 19 Jan 2026 13:29:27 -0500
Received: from mout-p-102.mailbox.org ([80.241.56.152]:50408)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>)
 id 1vhu0C-00027b-O2; Mon, 19 Jan 2026 13:29:25 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4dvzWJ2fb3z9vD4;
 Mon, 19 Jan 2026 19:29:16 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1768847356;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=MVMv1f5sK6u2CBZqeozVZgBlYjVKrOh2IcB8e6LD2+o=;
 b=oCr3js808hFE8+Qn2GYtYWL+7vv6i1yo2g8OoCOGbf8Ow0Fa3bjOVB4Y0oJsG94exMyJxL
 HfeQK2JJ2vRn7B2Kpl194BVTeOArdTbA8CMFazFejMJ+UUFs519sfGgzhvsHpzmrBJgb4R
 P8t7VLXdOw1dLCXFRz5FFXGMBoOrdNtNgoJk7Eouaq7pdHc9vklJ3X5E482dtuAkMVopzG
 2TI0z66wgmiWbNf8i7WvbeCMDK5N4I9O0ZRufxsQwtc5hJa3ma/cfswI6dE93mOZJyuray
 LlnEYquiT88UpM1MlSguXF4bENj+UklwSg+iqleAUxhqO50ySldeC705bWdeJw==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: Daniel Mendler <mail@HIDDEN>
Subject: Re: bug#80064: 31.0.50; eager-update fails to update, leaving an
 empty *Completions* buffer
In-Reply-To: <87zf6bwe64.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87ecolnmnm.fsf@HIDDEN>
 <87zf6o0xhm.fsf@HIDDEN> <87tsww0wtb.fsf@HIDDEN>
 <87jyxh2xb2.fsf@HIDDEN> <87zf6bwe64.fsf@HIDDEN>
Date: Mon, 19 Jan 2026 20:28:04 +0200
Message-ID: <87pl755uff.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Rspamd-Queue-Id: 4dvzWJ2fb3z9vD4
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80064
Cc: 80064 <at> debbugs.gnu.org, Spencer Baugh <sbaugh@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

close 80064 31.0.50
thanks

>>>> I debugged that this is because in 'minibuffer--completions-visible'
>>>> the value of 'completion-reference-buffer' is nil.  After removing
>>>> the condition that checks for 'completion-reference-buffer',
>>>> everything works correctly.
>>>
>>> Probably in 'completions--post-command-update'
>>> the call to (minibuffer--completions-visible) should be
>>> replaced with just (get-buffer-window "*Completions*" 0).
>>
>> Juri, could you please install the fix if it solves the issue reliably?
>
> I don't know why 'completion-reference-buffer' is nil,
> so was not sure what would be the right fix.
>
> But I could install this patch that allows
> 'completion-reference-buffer' to be nil:

So this is now pushed and closed.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80064; Package emacs. Full text available.

Message received at 80064 <at> debbugs.gnu.org:


Received: (at 80064) by debbugs.gnu.org; 18 Jan 2026 07:54:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 18 02:54:35 2026
Received: from localhost ([127.0.0.1]:44049 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vhNcI-0002Tk-L9
	for submit <at> debbugs.gnu.org; Sun, 18 Jan 2026 02:54:35 -0500
Received: from mout-p-202.mailbox.org ([80.241.56.172]:45240)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vhNcE-0002S6-He
 for 80064 <at> debbugs.gnu.org; Sun, 18 Jan 2026 02:54:32 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4dv5T96C7Cz9tfC;
 Sun, 18 Jan 2026 08:54:21 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1768722861;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=I67gtnyOpDZGmGUHBax6wMnFwcgJvmrCILxj41EmqHw=;
 b=BgZGORAXvowYSujNwaA2Ac2HS9Uw/PSbdgE8IDig0a0M8qofs0pJcMXH14igDOoubbhx/6
 EBP+ELrj1U5g7AP/vQNO2TeDzFuBNpoyyPsFc3TkVAVdroZtsQtCR/2JNXzI6MS3MXDlyA
 0gQ1GXfAdezk0Ppd9A3qKcAkQnJUAS2MNXmBHXz7AHZznVCm6fkLLnhSUYuVxb+RgRSd29
 +tR2AwjbL4SNXgIQ0Xlfi9wuGMd8ZYrWRZj4CGH8+ofO6dhkuXQSFKl/YXTTMFOc5HVZOv
 5iR8xGYoj0fT1u/i0RUlNU7vPFNPzlkNvfa/J9zfcH1D+hJGwmC302RGUS+3Qg==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: Daniel Mendler <mail@HIDDEN>
Subject: Re: bug#80064: 31.0.50; eager-update fails to update, leaving an
 empty *Completions* buffer
In-Reply-To: <87jyxh2xb2.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87ecolnmnm.fsf@HIDDEN>
 <87zf6o0xhm.fsf@HIDDEN> <87tsww0wtb.fsf@HIDDEN>
 <87jyxh2xb2.fsf@HIDDEN>
Date: Sun, 18 Jan 2026 09:52:35 +0200
Message-ID: <87zf6bwe64.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Rspamd-Queue-Id: 4dv5T96C7Cz9tfC
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80064
Cc: 80064 <at> debbugs.gnu.org, Spencer Baugh <sbaugh@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

>>> I debugged that this is because in 'minibuffer--completions-visible'
>>> the value of 'completion-reference-buffer' is nil.  After removing
>>> the condition that checks for 'completion-reference-buffer',
>>> everything works correctly.
>>
>> Probably in 'completions--post-command-update'
>> the call to (minibuffer--completions-visible) should be
>> replaced with just (get-buffer-window "*Completions*" 0).
>
> Juri, could you please install the fix if it solves the issue reliably?

I don't know why 'completion-reference-buffer' is nil,
so was not sure what would be the right fix.

But I could install this patch that allows
'completion-reference-buffer' to be nil:


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=minibuffer--completions-visible-nil.patch

diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 1742421939e..12827cacfe2 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -3473,13 +3473,16 @@ minibuffer-visible-completions--always-bind
 (defun minibuffer--completions-visible ()
   "Return the window where the current *Completions* buffer is visible, if any."
   (when-let* ((window (get-buffer-window "*Completions*" 0)))
-    (when (eq (buffer-local-value 'completion-reference-buffer
-                                  (window-buffer window))
-              ;; If there's no active minibuffer, we call
-              ;; `window-buffer' on nil, assuming that completion is
-              ;; happening in the selected window.
-              (window-buffer (active-minibuffer-window)))
-      window)))
+    (let ((reference-buffer
+           (buffer-local-value 'completion-reference-buffer
+                               (window-buffer window))))
+      (when (or (null reference-buffer)
+                (eq reference-buffer
+                    ;; If there's no active minibuffer, we call
+                    ;; `window-buffer' on nil, assuming that completion is
+                    ;; happening in the selected window.
+                    (window-buffer (active-minibuffer-window))))
+        window))))
 
 (defun completion--selected-candidate ()
   "Return the selected completion candidate if any."

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80064; Package emacs. Full text available.

Message received at 80064 <at> debbugs.gnu.org:


Received: (at 80064) by debbugs.gnu.org; 16 Jan 2026 19:05:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 16 14:05:16 2026
Received: from localhost ([127.0.0.1]:43312 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vgp8G-0004MS-2T
	for submit <at> debbugs.gnu.org; Fri, 16 Jan 2026 14:05:16 -0500
Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:57309 helo=mail.qxqx.de)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mail@HIDDEN>)
 id 1vgp8D-0004Ls-Tj
 for 80064 <at> debbugs.gnu.org; Fri, 16 Jan 2026 14:05:14 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date:
 References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:
 Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:
 Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:
 List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=l8RmUTbWvrQKZX+aRlsFXDB+NcD2RcubH4JOCSyFeAQ=; b=kvl9bNhikOLDz9oJ7aW8ZqRbIm
 42ufJ2g2XIHzihipHpASv3BB+qsaliz0NQFSL3sD3mkZq0RkBF+E155aPH7Wes89uV97H9R4W7Z4N
 thcS+gtBpuMiXnMS4z7J6iE39IgGdr671OTuh6hVyV9tPtdCUWGdcEzg7BOCR4U+IWNM=;
From: Daniel Mendler <mail@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#80064: 31.0.50; eager-update fails to update, leaving an
 empty *Completions* buffer
In-Reply-To: <87tsww0wtb.fsf@HIDDEN>
References: <87ecolnmnm.fsf@HIDDEN>
 <87zf6o0xhm.fsf@HIDDEN> <87tsww0wtb.fsf@HIDDEN>
Date: Fri, 16 Jan 2026 20:05:05 +0100
Message-ID: <87jyxh2xb2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 80064
Cc: 80064 <at> debbugs.gnu.org, Spencer Baugh <sbaugh@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Juri Linkov <juri@HIDDEN> writes:

>>> Then open some large Elisp file and press `M-s l`. Enter some word to
>>> search for and then press backspace multiple times, e.g., keep the
>>> backspace key pressed. Then the *Completions* buffer fails to update and
>>> and becomes empty. Entering new input will not lead to further updates.
>>> It seems the problem is that the post-command-hook does not get
>>> installed correctly.
>>
>> I debugged that this is because in 'minibuffer--completions-visible'
>> the value of 'completion-reference-buffer' is nil.  After removing
>> the condition that checks for 'completion-reference-buffer',
>> everything works correctly.
>
> Probably in 'completions--post-command-update'
> the call to (minibuffer--completions-visible) should be
> replaced with just (get-buffer-window "*Completions*" 0).

Juri, could you please install the fix if it solves the issue reliably?

Daniel




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80064; Package emacs. Full text available.

Message received at 80064 <at> debbugs.gnu.org:


Received: (at 80064) by debbugs.gnu.org; 8 Jan 2026 18:44:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 08 13:44:31 2026
Received: from localhost ([127.0.0.1]:43782 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vduzm-0003gR-KA
	for submit <at> debbugs.gnu.org; Thu, 08 Jan 2026 13:44:30 -0500
Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:37594)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vduzk-0003gC-70
 for 80064 <at> debbugs.gnu.org; Thu, 08 Jan 2026 13:44:29 -0500
Received: from smtp1.mailbox.org (smtp1.mailbox.org
 [IPv6:2001:67c:2050:b231:465::1])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4dnDMk2ZDWz9tLQ;
 Thu,  8 Jan 2026 19:44:18 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1767897858;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=25TlUa4lNu+XeAPHO3WCqmVF8mgthzE3CihrvU6S2vY=;
 b=12HCRDZDpiclAnA4Mhja9tGaMl7kaIWJdxmMMc+4mXDFbec6ewd1tGnuD3DVcvIq5gAlKN
 tClBQrEyyoNt44D/TCq4LF6cwWhb7vxcyr8JG/UkB4nw9CVLPomNZxtXNoEMwbvD9oDh+w
 Ztg40wPBYi5CxoIMWInOCP4MdhWT8cwUkx7jvUOrGeQ1qxBviFAYG/ocsuL1cQS0oC1ceX
 oabWFYTCthJJs2Iqr0od7DRiESw/KUngMRgnyoqbeV3p0HloQ5wK43+Zih0tNUkRDnOWvr
 EJr0WFbjQvZGZsWntwikEdZB/9DcfEyUTCz9quAJBv0g7q2SEhOAEBmlb9CsFQ==
Authentication-Results: outgoing_mbo_mout; dkim=none;
 spf=pass (outgoing_mbo_mout: domain of juri@HIDDEN designates
 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=juri@HIDDEN
From: Juri Linkov <juri@HIDDEN>
To: Daniel Mendler <mail@HIDDEN>
Subject: Re: bug#80064: 31.0.50; eager-update fails to update, leaving an
 empty *Completions* buffer
In-Reply-To: <87zf6o0xhm.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87ecolnmnm.fsf@HIDDEN> <87zf6o0xhm.fsf@HIDDEN>
Date: Thu, 08 Jan 2026 20:43:44 +0200
Message-ID: <87tsww0wtb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Rspamd-Queue-Id: 4dnDMk2ZDWz9tLQ
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80064
Cc: 80064 <at> debbugs.gnu.org, Spencer Baugh <sbaugh@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> Then open some large Elisp file and press `M-s l`. Enter some word to
>> search for and then press backspace multiple times, e.g., keep the
>> backspace key pressed. Then the *Completions* buffer fails to update and
>> and becomes empty. Entering new input will not lead to further updates.
>> It seems the problem is that the post-command-hook does not get
>> installed correctly.
>
> I debugged that this is because in 'minibuffer--completions-visible'
> the value of 'completion-reference-buffer' is nil.  After removing
> the condition that checks for 'completion-reference-buffer',
> everything works correctly.

Probably in 'completions--post-command-update'
the call to (minibuffer--completions-visible) should be
replaced with just (get-buffer-window "*Completions*" 0).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80064; Package emacs. Full text available.

Message received at 80064 <at> debbugs.gnu.org:


Received: (at 80064) by debbugs.gnu.org; 8 Jan 2026 18:31:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 08 13:31:01 2026
Received: from localhost ([127.0.0.1]:43739 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vdumj-000376-Ch
	for submit <at> debbugs.gnu.org; Thu, 08 Jan 2026 13:31:01 -0500
Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]:42668)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vdumf-00036p-Sc
 for 80064 <at> debbugs.gnu.org; Thu, 08 Jan 2026 13:30:59 -0500
Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4dnD492Ggzz9thr;
 Thu,  8 Jan 2026 19:30:49 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1767897049;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=HNxAtKc95OCci9c9guB6HJD5sNr2NnCINVfkUmFinVY=;
 b=Z23g9u8aFFiOzfXm5t5yg27luSShE/mLM1XiZUwQflC4WbkYw6qLVfBwAyOsROtvkVx/Vq
 w7mfy3WcvQ8pTD6lQAcq0/bAVeL0ep2zwO3InDYNmmnw49pBbrXFucwQ3/vqeaZWt7p71c
 Gj79FCmaMdiZwdhgT38y84OE2h626VjK5J2s2WfT2tKCMyKnqH5FBFIZIvIoAXkTFaAxLm
 iG2NPsPF7BLXXwGxN34tXDOTaq/kS6/4R0hSwrLYFmqFG6UDS2z/JkBbZHMY7Np+o0spmQ
 HUnzXBc+5Y7FAvXL9/h9pEv3DAGDRhnVVFH/u4jpqJHp581d6/+BORG+ygYxKg==
From: Juri Linkov <juri@HIDDEN>
To: Daniel Mendler <mail@HIDDEN>
Subject: Re: bug#80064: 31.0.50; eager-update fails to update, leaving an
 empty *Completions* buffer
In-Reply-To: <87ecolnmnm.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87ecolnmnm.fsf@HIDDEN>
Date: Thu, 08 Jan 2026 20:29:09 +0200
Message-ID: <87zf6o0xhm.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80064
Cc: 80064 <at> debbugs.gnu.org, Spencer Baugh <sbaugh@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> (setq completions-format 'one-column
>       completions-detailed t
>       completions-group t
>       completion-eager-update t
>       completion-eager-display t
>       completion-show-help nil
>       completion-show-inline-help nil
>       minibuffer-visible-completions t
>       completion-styles '(substring))
>
> (require 'consult)
> (keymap-global-set "M-s l" #'consult-line)
>
> Then open some large Elisp file and press `M-s l`. Enter some word to
> search for and then press backspace multiple times, e.g., keep the
> backspace key pressed. Then the *Completions* buffer fails to update and
> and becomes empty. Entering new input will not lead to further updates.
> It seems the problem is that the post-command-hook does not get
> installed correctly.

I debugged that this is because in 'minibuffer--completions-visible'
the value of 'completion-reference-buffer' is nil.  After removing
the condition that checks for 'completion-reference-buffer',
everything works correctly.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80064; Package emacs. Full text available.

Message received at 80064 <at> debbugs.gnu.org:


Received: (at 80064) by debbugs.gnu.org; 23 Dec 2025 17:24:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 23 12:24:16 2025
Received: from localhost ([127.0.0.1]:57977 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vY67L-0003pM-F4
	for submit <at> debbugs.gnu.org; Tue, 23 Dec 2025 12:24:15 -0500
Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:56751 helo=mail.qxqx.de)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mail@HIDDEN>)
 id 1vY67I-0003ox-6U; Tue, 23 Dec 2025 12:24:13 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date:
 References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:
 Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:
 Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:
 List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=1/qokKN9odGaO6/5pL3y0G40L9Axp9bVVjWNoF7IVTA=; b=g5sWIGpC7N0qUKBSpiTR3CldOm
 EFn6fdKB7hNS62HUb6uJdpFHgroZc6U8VC9JIl+E/3GVGaCwJKAZ2jKiz5dmxYXbs+2cGLppTiR1P
 5AyUKuvDPI6s8a9441/G0bKzyGCl6utJjNzgct95n2OI2BnuTL1BIXRdcpIa8qTvzEJ8=;
From: Daniel Mendler <mail@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
Subject: Re: bug#80055: [PATCH] eager-display *Completions* again after
 completion failure
In-Reply-To: <ierikdxyxau.fsf@HIDDEN>
References: <ier34521a21.fsf@HIDDEN> <87fr918xdn.fsf@HIDDEN>
 <87ecolmrj9.fsf@HIDDEN> <ierikdxyxau.fsf@HIDDEN>
Date: Tue, 23 Dec 2025 18:24:02 +0100
Message-ID: <87bjjpnmbx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 80064
Cc: 80064 <at> debbugs.gnu.org, 80055 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Spencer Baugh <sbaugh@HIDDEN> writes:

> Daniel Mendler <mail@HIDDEN> writes:
>
>> Juri Linkov <juri@HIDDEN> writes:
>>
>>>> If the completion table requests eager-update (so *Completions*
>>>> should be updated as the user types, when already displayed)
>>>> then *Completions* will be dismissed automatically if the user
>>>> types something which isn't a completion.  Previously,
>>>> *Completions* wouldn't be redisplayed until the user requests it
>>>> again.  Now, if the completion table also enables eager-display
>>>> in addition to eager-update, then automatically redisplay
>>>> *Completions* after it disappears.
>>>
>>> Thanks, this is very much needed.  It was too inconvenient
>>> when *Completions* disappeared after typing TAB that completes
>>> to the common prefix of remaining completions.
>>> So I will test the patch for a while.
>>
>> Hello Spencer,
>>
>> Besides this problem, I've observed another issue when I type quickly
>> with eager-update/eager-display. The *Completions* buffer somehow
>> breaks, just displaying an empty buffer. I am testing this with my
>> Consult package, see the commit with
>> eager-update/eager-display/minibuffer-visible-completions support:
>> https://github.com/minad/consult/commit/7be0d6bf556b608b0b38d006a4f66be849d721e0
>>
>> This seems due to the interrupt and an error which disables the PCH?
>>>From that point on the buffer stays empty and I have to restart
>> completion again. Have you observed something like this too? Thanks!
>
> I think I saw something like this once, but only once, ever.  Are you
> consistently getting it?  A config which consistently experiences this
> would be interesting.

The bug appears consistently in a minimal configuration. I created
bug#80064 to track this and I've put you in CC. I could produce it most
easily with Consult, but I've just seen that my recipe also works with
M-x only. The trick is to press backspace to quickly delete input and
this way trigger increasingly expensive candidate computations.

> Also, continuing to type should continue to update *Completions*.  Is
> that not what you were experiencing?  Did it stay permanently blank?

It stays blank. Completion is broken from that point on. I think there
is something wrong with the PCH or it doesn't get installed properly,
maybe due to interrupts. I haven't really looked deeply into this, but I
find the logic a little bit confusing with the mix of
after-change-functions and PCH.

> I didn't do it in this patch, but I think probably eager-update should
> be implemented with an idle timer just like I've done for eager-display.
> Then if the update gets interrupted, it can try again when the user is
> next idle.  That would make the blank buffer go away automatically in
> more cases, when the user is next idle.

Yes, maybe this would fix the problem.

> BTW: I see your config suggests setting completion-show-inline-help=nil
> because otherwise completion has some annoying blocking behavior.  This
> is due to minibuffer-message calling sit-for, and the patch in
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79510 will actually fix
> that.  It just needs a NEWS entry; I have it backported to my own site.

Thanks, that's a good improvement.

Daniel




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#80064; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Dec 2025 17:17:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 23 12:17:51 2025
Received: from localhost ([127.0.0.1]:57927 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vY618-0003Tc-Ia
	for submit <at> debbugs.gnu.org; Tue, 23 Dec 2025 12:17:50 -0500
Received: from lists.gnu.org ([2001:470:142::17]:50854)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mail@HIDDEN>)
 id 1vY616-0003SP-J0
 for submit <at> debbugs.gnu.org; Tue, 23 Dec 2025 12:17:49 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>)
 id 1vY60p-0003uo-5Y
 for bug-gnu-emacs@HIDDEN; Tue, 23 Dec 2025 12:17:32 -0500
Received: from server.qxqx.de ([2a01:4f8:c012:9177::1] helo=mail.qxqx.de)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>)
 id 1vY60k-00066v-3c
 for bug-gnu-emacs@HIDDEN; Tue, 23 Dec 2025 12:17:30 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date:
 Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=Fj04/Cn0zDHvBPg6wxvsb2KBHsQDqPUtSCSfhpGUC9U=; b=ieRDnFUR0j7qfwcDbrpU2xmYp+
 wC2VyOHRupJ6cwoWWXw0yC+EEwZoTORPYh0q1711vDznkqPIlUadLF7bN+q8kM+w4nAOsKTSaFk5Z
 VNNVtFBxgIi+r6AqjubMZ2RHQLJaywIxjNGY+ud9M4AIQiMNUdKaaEQvOLIibJFQDo78=;
From: Daniel Mendler <mail@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; eager-update fails to update, leaving an empty
 *Completions* buffer
X-Debbugs-Cc: Spencer Baugh <sbaugh@HIDDEN>
Date: Tue, 23 Dec 2025 18:17:01 +0100
Message-ID: <87ecolnmnm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a01:4f8:c012:9177::1;
 envelope-from=mail@HIDDEN; helo=mail.qxqx.de
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

Starting from emacs -Q, execute the following snippet in *scratch*:

(package-initialize)

(setq completions-format 'one-column
      completions-detailed t
      completions-group t
      completion-eager-update t
      completion-eager-display t
      completion-show-help nil
      completion-show-inline-help nil
      minibuffer-visible-completions t
      completion-styles '(substring))

(require 'consult)
(keymap-global-set "M-s l" #'consult-line)

Then open some large Elisp file and press `M-s l`. Enter some word to
search for and then press backspace multiple times, e.g., keep the
backspace key pressed. Then the *Completions* buffer fails to update and
and becomes empty. Entering new input will not lead to further updates.
It seems the problem is that the post-command-hook does not get
installed correctly.

In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.49, cairo version 1.18.4) of 2025-12-23
Windowing system distributor 'The X.Org Foundation', version 11.0.12101016
System Description: Debian GNU/Linux 13 (trixie)

Configured using:
 'configure --prefix=$HOME/.local/share/emacs
 --without-compress-install --with-tree-sitter --with-native-compilation
 --with-dbus --without-selinux --without-threads --disable-gc-mark-trace
 --without-gsettings --without-gpm --with-cairo --with-cairo-xcb
 --with-xinput2 --with-x-toolkit=gtk3 --without-toolkit-scroll-bars
 'CFLAGS=-O3 -mtune=native -march=native''

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSYSTEMD
LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP
SOUND SQLITE3 TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM
XRANDR GTK3 ZLIB




Acknowledgement sent to Daniel Mendler <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#80064; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 19 Jan 2026 18:45:02 UTC

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