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#74616: 30.0.92; tmm always displays the *Completions* buffer Date: Mon, 09 Dec 2024 15:44:08 +0100 Message-ID: <875xnslxvr.fsf@daniel-mendler.de> References: <878qt1w7c6.fsf@daniel-mendler.de> <86wmgl9mfz.fsf@gnu.org> <86ldwrirf1.fsf@gnu.org> <87wmgbftih.fsf@daniel-mendler.de> <87jzca2bg5.fsf@daniel-mendler.de> 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="4704"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 74616@debbugs.gnu.org, Juri Linkov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 09 15:47:15 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 1tKf2Y-0000yO-Ld for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Dec 2024 15:47:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKf2P-0007Yq-08; Mon, 09 Dec 2024 09:47:05 -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 1tKf2N-0007Ya-33 for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2024 09:47:03 -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 1tKf2M-0008BR-QJ for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2024 09:47:02 -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=MUICSJ6YQD9MCNPmoxtC5APxBnSUX+IpwlkitxHKf44=; b=WQZXC17wRbROyMB2jLcCTPZzt0cmLtG57Mb1DQUSaRSWNWTjpXq8QgD/O+6E07ubqNIx0HFfPkz0pdpbAsmpiRx4/CzgBP/lnVdsOx+3pmTEt7GE72z/uTdLOqG0WBDpiytPDnIEHxmGSbbmnv0mgOtSRI5uk4hyDmGqal+WyL2tc2p8ZIA5NPA7usnBMBA2gCMTgGv2SDCYkUDoDAnQlHEbc49Ig26bfySwlA86xLtY195S2yNgl+oy4MT9zZQH5FNnSTimoTKzpuzNbNIoAQImRIMMMcI3K+VK4l0G7eqILXF3odD0fkD4ghvhqQhlUlPjE5pGCsl/bNH2LMAbjw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKf2L-000091-Jx for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2024 09:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Dec 2024 14:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74616 X-GNU-PR-Package: emacs Original-Received: via spool by 74616-submit@debbugs.gnu.org id=B74616.1733755592494 (code B ref 74616); Mon, 09 Dec 2024 14:47:01 +0000 Original-Received: (at 74616) by debbugs.gnu.org; 9 Dec 2024 14:46:32 +0000 Original-Received: from localhost ([127.0.0.1]:53402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKf1r-00007u-Km for submit@debbugs.gnu.org; Mon, 09 Dec 2024 09:46:31 -0500 Original-Received: from server.qxqx.de ([49.12.34.165]:57869 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKf1o-00007I-Kd for 74616@debbugs.gnu.org; Mon, 09 Dec 2024 09:46:29 -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=MUICSJ6YQD9MCNPmoxtC5APxBnSUX+IpwlkitxHKf44=; b=CiwpmkFbG14wZ6OXNGyNQvGoA+ nq2D13S8BjNOGOVCU0w6/EWTkdYNgx0j4oQkYQZxT1h8fIw/ARWd9rrQmBwDpMLQrOpeD0At4hTL9 l80iIz4i6h/zHy3izlTWAeFu/pUnD0Gjj4aJrVY0SejvrU5TYw0rWXMt7xmHYNubEKxg=; In-Reply-To: (Stefan Monnier's message of "Mon, 09 Dec 2024 09:19:44 -0500") 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:296693 Archived-At: Stefan Monnier writes: >> Okay. Can you please clarify why you assume that overriding isn't >> reliably possible if the metadata is specified directly? > > Because `completion-category-overrides` works only if there's an > appropriate `category` to use. If the `eager-display` info comes > straight from the metadata, there's no guarantee that there's > an associated `category` info that can be used. I've added both completion categories and eager-display. Please see the attached patch. As soon as there is a completion category, overriding will work. While the completion category is a necessary prerequisite to support overriding, adding eager-display at either places should do. Also note the addition of the completion-eager-display defcustom (with values nil, t, auto), which will make it much easier to turn off eager display globally. Daniel