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: Fri, 16 Dec 2022 19:25:35 +0000 Message-ID: <87pmcj2lsg.fsf@posteo.net> References: <16193c73-ab80-04c9-558f-d5e6142f38f3@protonmail.com> <871qpydllo.fsf@posteo.net> <874jutft6g.fsf@gmail.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="8172"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Visuwesh , Okamsn , emacs-devel@gnu.org To: North Year Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 16 20:26:27 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 1p6GLi-0001vA-Fl for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Dec 2022 20:26:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6GL4-0007Qs-As; Fri, 16 Dec 2022 14:25:46 -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 1p6GL0-0007P7-3I for emacs-devel@gnu.org; Fri, 16 Dec 2022 14:25:43 -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 1p6GKx-0002Ze-3u for emacs-devel@gnu.org; Fri, 16 Dec 2022 14:25:41 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9C9D6240029 for ; Fri, 16 Dec 2022 20:25:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671218735; bh=1AowNkWSzdUvC0ov8/mc10tsBjmwOPaxELKxDFbPvKM=; h=From:To:Cc:Subject:Date:From; b=AO9BlH+X7Kwwxqv2wI0ZFAsfduotR4u9Ir+pcpWpyNFKDkFtGMCokQITWahlf9P/W XLdbcJ+9njrdsZGpR9muoLgmmuwp+sZP95ott7q/HUsT/nwbpbrEeYEq081URijG/c MHR9oddF8+cHhwyhm71z1Kide5TjiA+zWfNSxRLEmNrp4ozZLaB0ecNUDitxtIRlV2 Zv6iHwWs65+O5zAWiNYjtwiqM6qpsBBDrJIy32DEUiHQMuFPobKWdc8UcNn/UOo40U 0JPS3CwnuiiUvAZ/FbVmXGI5d0uoTzPZDb718zMTrEOYY15dkpsYnhVP9MPUKN4wND JzWdCrfZpBOeg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NYfFp6QGzz9rxD; Fri, 16 Dec 2022 20:25:32 +0100 (CET) In-Reply-To: (North Year's message of "Fri, 16 Dec 2022 04:41:06 -0500") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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:301518 Archived-At: North Year writes: > On 11/20/22 22:40, Visuwesh wrote: >>>> >>>> - `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). > > Why `prescient`, `company-prescient`, `corfu-prescient`, > `vertico-prescient` need to be separate packages? Can't they bundle > together as a single package? Eglot has additional support for company > despite that company isn't a builtin package yet, and eglot doesn't have > a `company-eglot` additional package. This has already been discussed in the thread, and it appears the head maintainer is opposed to this approach. I think it is a pity, as you say it usually is not problem to add optional support for a package that may or may not be installed (bbdb is another example that does this well).