From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Eglot, project.el, and python virtual environments Date: Sat, 19 Nov 2022 23:25:59 +0000 Message-ID: References: <87zgcq68zp.fsf@ericabrahamsen.net> <878rkale3l.fsf@dfreeman.email> <4c5f4b07-3df6-d700-83f8-9a9d1b684afc@yandex.ru> <84781346-5b88-2be5-38bb-02696fcf1364@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c44c4505eddb2589" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14646"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Danny Freeman , Eric Abrahamsen , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 20 00:27:08 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 1owXEp-0003fN-PM for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Nov 2022 00:27:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owXDz-0005ia-Iq; Sat, 19 Nov 2022 18:26:15 -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 1owXDy-0005iS-EQ for emacs-devel@gnu.org; Sat, 19 Nov 2022 18:26:14 -0500 Original-Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owXDw-0002pM-Py for emacs-devel@gnu.org; Sat, 19 Nov 2022 18:26:14 -0500 Original-Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-13be3ef361dso9981074fac.12 for ; Sat, 19 Nov 2022 15:26:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FGAp9W2EZA5CtA7zqZgBRjmSF/BqRZ11fu4QkWVi7R8=; b=OD6/q+QTaY3woVlx/N7GL0GLSDOAC+fPrmPENIhFekFNAnsq0fC92ZAv+Qx1WL+77d y1YvFY7nn9lSp8PCvVlFpa0bI5q70EdVgR2W8/9d9upb7OmRN5I12weK/PN/SHsiZnVF Mj0JWMdhq/7+arIRtkJsBqKACmqCgEUTzjvr1dp10uxKZkkXPR/PCiMgmG4OsvqT7c1h BJRJDXBZLbm2VD5dvqyPTCmrQLU26SBjX1bBbREeM+i66XKWsm3Z9c+iqs4ITODIJ5OB rqSKBNFVvdb60udqG/0C5BO6zBjigfeTzFSK842ithTStE0/e0z8HS/pi8qluvdCp5FX VCRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FGAp9W2EZA5CtA7zqZgBRjmSF/BqRZ11fu4QkWVi7R8=; b=sM3DzoPpviMey0cJqJb88zvxBpWA9z+QWCoqKG/RwZdMFJNGs6EHPTeCjHwsSty8UL evpA4FEU7T0Tpq3MU9ytbZNMHj+Jcq3iEuzPiNsLddgmBtxi1qRfP+sHlIBegIwZ0mP7 Xm2almTpUYdbRNbDxhaqFid5dkjSAoQhyd2xg2wWwhjgxF+U8AUW4uXbKHWE/yNc3NU0 IcmF6BbCe8ZCs2NjFbDmy/iJCOepwluE+2j+RSWatuOePk38gI7p1PtYC7QiyrQlGL1L e59ExeOqqF6emLhDeI4n38j1ldCrvnWOkfH1x65+YxA2GUUeqPRZ2jGBbRF+J5IVmYj+ Gx0g== X-Gm-Message-State: ANoB5pnTz7KrEre+RPSm/h2lhLjCdGy8ajGEPo6K0nU7seZG+6qbaK46 Ue0XrCrre7ankpvvXzBninTAl9x2HqpIesL1iew= X-Google-Smtp-Source: AA0mqf6/vM3icdctbkU+nf4nS+X9UyUVDVMKxHksi5Ous13i+KaXljTKqWmXtDg2WHKj1rTQs9wR2I9R///MyRGInac= X-Received: by 2002:a05:6870:6688:b0:13b:5ffe:ff70 with SMTP id ge8-20020a056870668800b0013b5ffeff70mr9752027oab.171.1668900370794; Sat, 19 Nov 2022 15:26:10 -0800 (PST) In-Reply-To: <84781346-5b88-2be5-38bb-02696fcf1364@yandex.ru> Received-SPF: pass client-ip=2001:4860:4864:20::2d; envelope-from=joaotavora@gmail.com; helo=mail-oa1-x2d.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, HTML_MESSAGE=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-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:300215 Archived-At: --000000000000c44c4505eddb2589 Content-Type: text/plain; charset="UTF-8" > > I built > > a backend-style based completion table based on > > voidtools everything (https://www.voidtools.com/downloads/ > > ) > > with regexp completion. It's pretty fast. > > That's Windows-only, right? > Yes. That's what I'm using there. > I had hoped to plug it in project.el but I couldn't find a way, so > > I rebound C-x p f to it. > > Should be easy enough: you create your own backend (rather than reusing > 'transient') and override the generic 'project-files'. Then add it to > project-find-functions. > iiuc project-files should return a list of files, or can it return a completion table as well? If not the latter, then i think it won't work... Anyway, this is the problem with the popular recommendation: just add a > thing to 'project-find-functions'. It degrades performance and changes > how project commands work too. > I don't see the relation. If anything this reduces the amount of files to search (but it's still a lot). > --000000000000c44c4505eddb2589 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=C2=A0
> I built
> a backend-style based completion table based on
> voidtools everything (http= s://www.voidtools.com/downloads/
> <https://www.voidtools.= com/downloads/>)
> with regexp completion.=C2=A0 It's pretty fast.

That's Windows-only, right?

Yes. That's what I'm using there.

> I had hoped to plug it in project.el but I couldn't find a way, so=
> I rebound C-x p f to it.

Should be easy enough: you create your own backend (rather than reusing 'transient') and override the generic 'project-files'. Then= add it to
project-find-functions.

<= /div>
iiuc project-files should return a list of files, or= can it return a completion table as well? If not the latter, then i think = it won't work...

Anyway, this is the problem with the popular recommendation: just add a thing to 'project-find-functions'. It degrades performance and chan= ges
how project commands work too.

I don't see the relation. If anything thi= s reduces the amount of files to search (but it's still a lot).
--000000000000c44c4505eddb2589--