From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: Adding the `prescient` packages to NonGNU ELPA? Date: Sun, 20 Nov 2022 09:24:51 +0000 Message-ID: <871qpydllo.fsf@posteo.net> References: <16193c73-ab80-04c9-558f-d5e6142f38f3@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32701"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Okamsn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 20 10:25:21 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 1owgZk-0008Km-SV for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Nov 2022 10:25:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owgZO-0008UM-SS; Sun, 20 Nov 2022 04:24:58 -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 1owgZN-0008UD-Rc for emacs-devel@gnu.org; Sun, 20 Nov 2022 04:24:57 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owgZL-0001j6-5j for emacs-devel@gnu.org; Sun, 20 Nov 2022 04:24:57 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 20F25240026 for ; Sun, 20 Nov 2022 10:24:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668936291; bh=T86ktzEchx3ji41d4lcAqyannVVO9gjMu3aNTU1p7lM=; h=From:To:Cc:Subject:Date:From; b=JQ+CztdPUUgvrMdU4vFrEMChZNjD/XIE+a3sfMZpNXJNYNvoR1DnjLS6DOPtOvag9 70neNHnk3oYS5PvJxv3uLENf72qNGdSOPtncvL9Aa+i0LwGMgfPylUXKXHb8ju0/yd TvD1EBBmFV0IWX/CmGiaV7sx+ODmbpLAlk8E2La7wdJXp6K1cf9KIcvqyZi349PvPy ntyRke16ZoqcL/gAvig8WXLWTJ9xCKgf2Vkx86xU7+fBkHlrzjGUp5vOaKP+2lr0Oz z89MRVKaEDzCfBsLlCXrYn92fNJHzafzt+yPNZox/9CEcJlFqt2FUSLH46HhWyrlrN 4envasXtJAQ4g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NFQ8f4RRCz6tmG; Sun, 20 Nov 2022 10:24:50 +0100 (CET) In-Reply-To: <16193c73-ab80-04c9-558f-d5e6142f38f3@protonmail.com> (okamsn@protonmail.com's message of "Sun, 20 Nov 2022 03:27:33 +0000") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de 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, 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-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:300236 Archived-At: Okamsn writes: > Hello, Hi, > Would you be willing to add Prescient[1] and some of its related > packages to NonGNU ELPA, as in the attached file? I am one of the > maintainers of this package. The author of the package does not wish to > assign copyright or require others to do so, so it cannot be added to > GNU ELPA. > > Prescient is for sorting and filtering completion candidates. Its > filtering is similar to the package Orderless and it sorts by a > combination of the frequency and the recency of the candidates. >From what I recall, Vertico does that too, but Vertico is a completion front-end? Intuitively I would have also guessed that the front-end is the right place to solve this problem. Or maybe to rephrase the question, what does this package provide over vertico + orderless? > 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? > All of these packages live in the same repository in the link below. Would it be possible to change this? E.g. by making each project live on it's own branch. That would make the :ignored-files rules below a lot simpler. > When I tried testing the installation of `prescient`, it installed > an older version of the file `prescient.el` than what is current in the > repository. This was the version that received an update to the version > number, but how does the system decide which is the most recent stable > version of a file? I might need to increase the number to make it > install a newer version. Yes, ELPA finds the last commit that changed the version header and uses that to prepare a release. > Thank you. > > > [1]: https://github.com/radian-software/prescient.el > > From f2d4107036e5be8b97de83663e47aeb5a670a301 Mon Sep 17 00:00:00 2001 > From: okamsn > Date: Sat, 19 Nov 2022 21:13:05 -0500 > Subject: [PATCH] First attempt at adding packages. > > --- > elpa-packages | 40 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/elpa-packages b/elpa-packages > index eb69320ee2..a15d60370b 100644 > --- a/elpa-packages > +++ b/elpa-packages > @@ -484,6 +484,46 @@ > ("popup" :url "https://github.com/auto-complete/popup-el" > :ignored-files ("LICENSE")) > > + ("prescient" :url "https://github.com/radian-software/prescient.el" > + :branch "main" > + :news "CHANGELOG.md" > + :mainfile "prescient.el" > + :readme "README.md" > + :ignored-files ("Dockerfile" "LICENSE.md" "Makefile" "company-prescient.el" > + "corfu-prescient.el" "ivy-prescient.el" "scripts" > + "selectrum-prescient.el" "stub" "vertico-prescient.el" > + ".dir-locals.el" ".github" ".gitignore")) > + > + ("vertico-prescient" :url "https://github.com/radian-software/prescient.el" > + :branch "main" > + :news "CHANGELOG.md" > + :mainfile "vertico-prescient.el" > + :readme "README.md" > + :ignored-files ("Dockerfile" "LICENSE.md" "Makefile" "company-prescient.el" > + "corfu-prescient.el" "ivy-prescient.el" "prescient.el" > + "scripts" "selectrum-prescient.el" "stub" ".dir-locals.el" > + ".github" ".gitignore")) > + > + ("corfu-prescient" :url "https://github.com/radian-software/prescient.el" > + :branch "main" > + :news "CHANGELOG.md" > + :mainfile "corfu-prescient.el" > + :readme "README.md" > + :ignored-files ("Dockerfile" "LICENSE.md" "Makefile" "company-prescient.el" > + "ivy-prescient.el" "prescient.el" "scripts" > + "selectrum-prescient.el" "stub" "vertico-prescient.el" > + ".dir-locals.el" ".github" ".gitignore")) > + > + ("company-prescient" :url "https://github.com/radian-software/prescient.el" > + :branch "main" > + :news "CHANGELOG.md" > + :mainfile "company-prescient.el" > + :readme "README.md" > + :ignored-files ("Dockerfile" "LICENSE.md" "Makefile" "corfu-prescient.el" > + "ivy-prescient.el" "prescient.el" "scripts" > + "selectrum-prescient.el" "stub" "vertico-prescient.el" > + ".dir-locals.el" ".github" ".gitignore")) > + > ("projectile" :url "https://github.com/bbatsov/projectile" > :ignored-files ("LICENSE" "doc" "test") > :news "CHANGELOG.md")