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#74865: [PATCH] Use `completion-table-with-metadata' Date: Mon, 16 Dec 2024 20:20:10 +0200 Organization: LINKOV.NET Message-ID: <874j33ebhh.fsf@mail.linkov.net> References: <87o71eifrs.fsf@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9310"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: 74865@debbugs.gnu.org To: Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 19:23:14 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 1tNFkQ-0002IA-Mu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 19:23:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNFkG-0006lV-3y; Mon, 16 Dec 2024 13:23:04 -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 1tNFkE-0006lC-Le for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 13:23:02 -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 1tNFkE-0002sX-A5 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 13:23: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=9Odu7VfOupAJE8aVnwG6GazpZOiZsNzDNKXH4cYMluM=; b=JFXbaAZvwjxALrSLKQ8HOHYXNztrC6h2yUlrEiccMxXTy/MxI05eYQMlGPuTQ6Pw7juWYv9J+4OR4sa44eMTPWVu90Brkt4gfwkPNVq42gkVLQn3z8WlbhZpfVo0mHt/x/VF/1DJpfBUASbbcXS28ba30Rj2o/WRWlor57Zl02fcELU0+6KFvVE1mXci9Wx3oXYalBWgJ1Fc/E1AEPR8CoXBaUMHRRA3a/6TcthF4Qdxkypy9oIRRZw1hZuMmczFNityHywQFBQD8jXRKRH8Dc7jCsrlgF1cOXW9XIcGJ2poy8u7XJKDkB6pl9WmJEkSNIzvdqRd9qu4Hvr1M+q8aw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNFkE-00013g-3R for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 13:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 18:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74865 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74865-submit@debbugs.gnu.org id=B74865.17343733283981 (code B ref 74865); Mon, 16 Dec 2024 18:23:02 +0000 Original-Received: (at 74865) by debbugs.gnu.org; 16 Dec 2024 18:22:08 +0000 Original-Received: from localhost ([127.0.0.1]:56126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNFjM-000129-1c for submit@debbugs.gnu.org; Mon, 16 Dec 2024 13:22:08 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:48245) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNFjB-00010T-K2 for 74865@debbugs.gnu.org; Mon, 16 Dec 2024 13:21:58 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 10B6FC0002; Mon, 16 Dec 2024 18:21:49 +0000 (UTC) In-Reply-To: <87o71eifrs.fsf@daniel-mendler.de> (Daniel Mendler's message of "Sat, 14 Dec 2024 13:57:11 +0100") X-GND-Sasl: juri@linkov.net 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:297209 Archived-At: > This is a small follow-up of bug#74616. There I have introduced the > `completion-table-with-metadata' helper function, which we can now take > advantage of at more places. By using `completion-table-with-metadata' > we avoid problems with completion sessions in recursive minibuffers. Thanks for the patch, now pushed. `completion-table-with-metadata' is a very useful function. I already used it for the new command 'comint-complete-input-ring' in bug#74694. Also it could be used in `read-char-by-name' as well. Maybe `completion-table-with-metadata' should be announced in the "Lisp Changes" section of etc/NEWS?