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 21:13:25 +0200 Organization: LINKOV.NET Message-ID: <87pllrcuga.fsf@mail.linkov.net> References: <87o71eifrs.fsf@daniel-mendler.de> <874j33ebhh.fsf@mail.linkov.net> <87seqnh47j.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="20185"; 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 20:15:42 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 1tNGZB-00057k-Eg for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 20:15:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNGYb-00035W-EY; Mon, 16 Dec 2024 14:15: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 1tNGYZ-00033Z-FS for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 14:15: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 1tNGYZ-0002rc-5W for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 14:15:03 -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=oUsWyEclTFIoK27zGjDLfQPdkNZ/DqN9r2txnbX2NTc=; b=QqKAdet7/uyly7nMYGt1rEYbGnO6f9fCMy1ERHsNxxVDdQZJAwni98+Re3/uW0YvmL2ILNOXJetJVJY2D5KR41FCTgpzfwZPeQ9y1sAcCBBQvaPWrlJoSNIYLwIXx4dSktV6od3GpO50bwtT/w4TyWxgzO0hImsvRm2wTcuM+4M27eROnGs+hpztXEGn8FId6dcJBPA0XdqjZQDPr5ut4jNBMK7ffIEK1vbHekhTSeHbRerz3Brap8pN/ZoBARojwsbeRO2C758r9Sg5hB/0SMzziAO+fMZ7qNACJuiCyVYxPJdyslfaoakwLzdZgFvHzvLVuXAuoVAuayJRRNs2bQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNGYY-0003nY-UJ for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 14:15: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 19:15: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.173437645114481 (code B ref 74865); Mon, 16 Dec 2024 19:15:02 +0000 Original-Received: (at 74865) by debbugs.gnu.org; 16 Dec 2024 19:14:11 +0000 Original-Received: from localhost ([127.0.0.1]:56224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNGXj-0003lU-0b for submit@debbugs.gnu.org; Mon, 16 Dec 2024 14:14:11 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:52785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNGXg-0003ks-I1 for 74865@debbugs.gnu.org; Mon, 16 Dec 2024 14:14:09 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id BA7D520007; Mon, 16 Dec 2024 19:13:59 +0000 (UTC) In-Reply-To: <87seqnh47j.fsf@daniel-mendler.de> (Daniel Mendler's message of "Mon, 16 Dec 2024 19:29:04 +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:297217 Archived-At: >> Also it could be used in `read-char-by-name' as well. > > Yes, there are certainly more use cases. I didn't use it for > `read-char-by-name' since this would change the caching behavior > slightly. The character names would be loaded a little bit earlier, > which would slow down the initialization of `read-char-by-name'. Maybe the caching behavior could be preserved by turning `completion-table-with-metadata' into a macro? >> Maybe `completion-table-with-metadata' should be announced >> in the "Lisp Changes" section of etc/NEWS? > > Yes, please go ahead adding it to the NEWS. I will backport the function > also via Compat. Ok, now added to NEWS.