From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: Adding the `prescient` packages to NonGNU ELPA? Date: Sun, 20 Nov 2022 22:40:31 +0530 Message-ID: <874jutft6g.fsf@gmail.com> References: <16193c73-ab80-04c9-558f-d5e6142f38f3@protonmail.com> <871qpydllo.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26727"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Okamsn , emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 20 18:53:58 2022 Return-path: Envelope-to: ged-emacs-devel@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 1owoVy-0006lY-5B for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Nov 2022 18:53:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owoV3-0008Uf-QS; Sun, 20 Nov 2022 12:53:01 -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 1ownqF-0007U4-MW for emacs-devel@gnu.org; Sun, 20 Nov 2022 12:10:51 -0500 Original-Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ownqE-0004iT-8a for emacs-devel@gnu.org; Sun, 20 Nov 2022 12:10:51 -0500 Original-Received: by mail-pj1-x1043.google.com with SMTP id w3-20020a17090a460300b00218524e8877so10437040pjg.1 for ; Sun, 20 Nov 2022 09:10:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cNWYEkuTE7huuIQvWHQ38r7A0PFpm1a9xit5bgJaeOA=; b=D4Piq+Nd0WyUADysoTwpjefZqYhj9ksa6eLnjT9W2fekyLxWJZTGUQeiCvrLtXH7zm sX/dEfth6ULTISHQfMAJWfpa8kpGVgCezq+b8XV+N0agci8G+vAXUYHDjUK1AEiSPLil sLG/FA7UvQGJ+hPWuHopsVcfP3ULJ+vEZnSQU3LAJ8CqaOWn0TCUYcmRtwho/BpH66kU iePKH63eMvh2dupQFuQGUfwPNGIk7ZSM3bXEk4QW8KaCINOCiq2r3WSGW8JhIcEGFrcn QC7x08DSJwTB+jto0pqNIF+caAp+Uep6oRHMi4kNfizESy1AlpK+KCg0yo0kZzUsAV2j 8w8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cNWYEkuTE7huuIQvWHQ38r7A0PFpm1a9xit5bgJaeOA=; b=JCKAI57pPnPI1e5pOtFBRAJVkM193u2I/yuU3HlS2Qgj66u90ABfG7eXbXGpqluIup beVrM+IYZpGyuAFdaWqXGNfKZSkxaQl1xkLaGCK4d1ulXYP1uJJ8S2Puu/P/t0jZEutI C7wXPQH21SRzv1OQR72BNnoe54brmCgYnmhHxuXtgM9hLZcICyOHJOv1SU1b5D21dB7W 2rURBw1xFe0d1rJqWcvETc5Warj74i9df/u+2X2cX4e1PDolPKsZYMBEi1EmBjbBZ1z/ JW/xb/9kLGNSYiLGsIlqi7A/sNBDv9lLQmC+P/Msh56QeeUqtiOkji3yGr05FcHKkFRM SHuw== X-Gm-Message-State: ANoB5pmZGef04e5voPAKF9myQVW7HXu99sumIumI6e8p9R8ztsSVLE7d qexQGA1Zbj0eNpEvDzxEVCU= X-Google-Smtp-Source: AA0mqf5FPgK+2Sqyrvz+Ro7TMR2A6pLNTesKxKDXRuK+MFIhjW+anh6ieJHscaxsPvmeaAC5ryxjjA== X-Received: by 2002:a17:90b:3444:b0:214:e1:cabe with SMTP id lj4-20020a17090b344400b0021400e1cabemr16859274pjb.153.1668964248344; Sun, 20 Nov 2022 09:10:48 -0800 (PST) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id x7-20020a170902820700b00186b3c3e2dasm7712464pln.155.2022.11.20.09.10.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 09:10:47 -0800 (PST) In-Reply-To: <871qpydllo.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 20 Nov 2022 09:24:51 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::1043; envelope-from=visuweshm@gmail.com; helo=mail-pj1-x1043.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 20 Nov 2022 12:53:00 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300261 Archived-At: [=E0=AE=9E=E0=AE=BE=E0=AE=AF=E0=AE=BF=E0=AE=B1=E0=AF=81 =E0=AE=A8=E0=AE=B5= =E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0=AF=8D 20, 2022] Philip Kaludercic w= rote: >> [...] >> These are the packages I am wondering if you would be willing to add: >> >> - `prescient`: The base package, which provides the sorting and >> filtering functions and a completion style >> >> - `company-prescient`: Use `prescient` sorting with Company >> >> - `corfu-prescient`: Use `prescient` sorting and filtering with Corfu >> >> - `vertico-prescient`: Use `prescient` sorting and filtering with Vertico > > Could you explain the need for these other packages? If we are talking > about a completion style, why do other packages require their own > support? AFAIU, it is because there is no common way to call a function after ending a completing-read and/or completion-in-region call so we end up needing a UI specific way to do so. The function records the selected candidate, necessary for fuzzy(?) matching based on frequency and recency ("frecency"). The README does a better job at explaining this than I do here (which is based on understanding on how the package worked before it underwent extensive rewrite).