From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.bugs Subject: bug#47711: bug#48841: bug#47711: bug#48841: bug#47711: [PATCH VERSION 2] Add new `completion-filter-completions` API and deferred highlighting Date: Sat, 04 Nov 2023 14:46:43 -0400 Message-ID: References: <5d0a78cc-4fa0-ef04-3462-1826f17d7d56@gutov.dev> <877cn8asud.fsf@gmail.com> <8734xtauqj.fsf@gmail.com> <5181f95e-61e7-c8c4-6389-44ee57e0c749@gutov.dev> <31cadbfd-d086-a04f-0ed9-17ce70b4282c@gutov.dev> <15a867ba-5a0f-9852-0296-b4c809baac7b@gutov.dev> <2a144a08-eb41-22ee-ddf0-59ad1f3222f0@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7502"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 47711@debbugs.gnu.org Cancel-Lock: sha1:HE4eQhOzvizq8QJvhHZVU8zwvts= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 04 19:47:52 2023 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 1qzLgW-0001kQ-Kl for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Nov 2023 19:47:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzLg7-0007bU-MO; Sat, 04 Nov 2023 14:47:27 -0400 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 1qzLg6-0007av-3D for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 14:47:26 -0400 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 1qzLg5-00028S-RY for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 14:47:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzLgf-000303-OK for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 14:48:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <3cc8aae8-58fc-abce-728c-090595281da2@daniel-mendler.de> Resent-From: Howard Melman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Nov 2023 18:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47711 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169912366511506 (code B ref -1); Sat, 04 Nov 2023 18:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2023 18:47:45 +0000 Original-Received: from localhost ([127.0.0.1]:35698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzLgO-0002zW-Uo for submit@debbugs.gnu.org; Sat, 04 Nov 2023 14:47:45 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:60668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzLgM-0002zF-En for submit@debbugs.gnu.org; Sat, 04 Nov 2023 14:47:43 -0400 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 1qzLff-0007WU-P6 for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 14:46:59 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qzLfe-00023W-Fg for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 14:46:59 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qzLfZ-0000ar-02 for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 19:46:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:273788 Archived-At: Dmitry Gutov writes: > On 02/11/2023 18:09, João Távora wrote: >> On Thu, Nov 2, 2023 at 4:03 PM Dmitry Gutov wrote: >> >>>> That's debatable, I like to be able to type 'vcdiff' and >>>> see all the commands that vc.el offers for diffing things. >>> That also works for Orderless and "vc dif". >> Ah, but the order in which all these commands appear is >> arbitrary, if I understand correctly. It must be, since >> there's no sorting, right? > > Seems so. FYI, it's true that orderless just does filtering, it's just a completion-style and leaves sorting to the completion UI (I use it with vertico, but others work too). It's configurable so what people can input can vary a lot, but the main feature is that each space-separated bit is used in any order. So in the above example "vc dif" and "dif vc" would both work. The second is unlikely in this example but it's far more useful when searching for function or variable names. The other great feature is that each "word" can be evaluated in different ways, I typically use them as regexps, but it's also easy to add syntax. It's common to make a leading ! in a word mean "without". So an input of "file !--" would match all things that include file anywhere and doesn't have -- anywhere. "^rx- !--" matches everything in the public rx API (well anything beginning with rx- without --). -- Howard