From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74617: 30.0.92; ffap-menu always displays the *Completions* buffer Date: Sat, 30 Nov 2024 09:34:11 +0100 Message-ID: <875xo5unlo.fsf@daniel-mendler.de> References: <87r06turur.fsf@daniel-mendler.de> <86ser99lrd.fsf@gnu.org> Reply-To: Daniel Mendler Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25084"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74617@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 30 09:35:22 2024 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 1tHIwk-0006Np-56 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Nov 2024 09:35:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHIwV-0006Gw-I8; Sat, 30 Nov 2024 03:35:08 -0500 Original-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 ) id 1tHIwT-0006Fe-0Q for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 03:35:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tHIwS-0004R2-Mb for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 03:35:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=6d3WwWcOVbCs4oqIYuiyoKXfCM3y13weoG6YgXt4/Uw=; b=B3KLWo4opYEAqHKaE/ahT1P+qXt5co8KuDvcIDKbYQHIO+g521oqlftm9ATbYjdam/NI4cj5fYRAnyhjPj2JOgqwt/J80kBN1wwSwcoLmfW/2GKqB735PQ3CaOu9bw7On8fmbSiJCa7zrpVJ5zV6TTDz5B1flGhC6z9ehJ/oJX39D78yb2XPZkHxZZMEpshSitCzNV5IdnW6cEppa6hWB4jkETwpMB4lANn9Wb+0uMN9wL+lN1AyuwQy/ob1SSwnnb8hTSyj+U0mNz5eT6jw+IRqwubo2WFnE9IzPDKyadANn99FQgINHaxulsI/WRqV5g/t1WZZOV4oA64VufWoVw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHIwQ-0002bF-G2 for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 03:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Nov 2024 08:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74617 X-GNU-PR-Package: emacs Original-Received: via spool by 74617-submit@debbugs.gnu.org id=B74617.17329556639913 (code B ref 74617); Sat, 30 Nov 2024 08:35:02 +0000 Original-Received: (at 74617) by debbugs.gnu.org; 30 Nov 2024 08:34:23 +0000 Original-Received: from localhost ([127.0.0.1]:45330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHIvm-0002Zo-Rs for submit@debbugs.gnu.org; Sat, 30 Nov 2024 03:34:23 -0500 Original-Received: from server.qxqx.de ([49.12.34.165]:41677 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHIvk-0002ZT-1L for 74617@debbugs.gnu.org; Sat, 30 Nov 2024 03:34:21 -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=6d3WwWcOVbCs4oqIYuiyoKXfCM3y13weoG6YgXt4/Uw=; b=lwzcIwSlVbAkVCwnv1UyDU5g4s rf4ohud+e8UsmJMYg7071JiDuWblyPv4nEcZ5NxnTGwYypcI7jHECELyMHQH6TkFWSWvm9Tci34yx ptkeodAV2w4TsOV8zhlOKtMbbGPESuJZoLRumfkM6Aqv0u3gXX7GFwOTmlo84XWONfnE=; In-Reply-To: <86ser99lrd.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 30 Nov 2024 10:19:34 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296120 Archived-At: Eli Zaretskii writes: >> Cc: Stefan Monnier >> Date: Sat, 30 Nov 2024 08:02:20 +0100 >> From: Daniel Mendler via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> `ffap-menu' automatically displays the *Completions* buffer by calling >> `minibuffer-completion-help'. If an alternative minibuffer completion >> system like Icomplete or Vertico is used, the *Completions* buffer is >> not needed since the candidates are already displayed in the minibuffer. > > That's not what I see here. Recipe: > > emacs -Q > M-x icomplete-mode RET > C-x C-f nt/INSTALL.W64 RET > M-x ffap-menu RET > > I see only the *Completions* buffer, no other display of the > candidates. What did I miss? Oh, right. I missed that. I think the problem here is that Icomplete uses a delay (`icomplete-compute-delay'). Other completion UIs don't have such a delay and show the candidates immediately. This makes the problem a little more difficult, in particular with respect to auto detection. Another alternative to auto detection could be that the completion table communicates to `completing-read' via metadata that immediate candidate display is desired. The completion UI could then act accordingly. Default completion would call `minibuffer-completion-help' and Icomplete could update immediately, ignoring `icomplete-compute-delay'. Daniel