From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Eglot, project.el, and python virtual environments Date: Mon, 21 Nov 2022 08:49:56 -0800 Message-ID: <8735acuua3.fsf@ericabrahamsen.net> References: <87zgcq68zp.fsf@ericabrahamsen.net> <878rkale3l.fsf@dfreeman.email> <4c5f4b07-3df6-d700-83f8-9a9d1b684afc@yandex.ru> <84781346-5b88-2be5-38bb-02696fcf1364@yandex.ru> <87o7t2vj19.fsf@dfreeman.email> <877czqtyfy.fsf@dfreeman.email> <87zgcml7g7.fsf@gmail.com> <87bkp0vj2q.fsf@ericabrahamsen.net> <871qpwbfak.fsf@gmail.com> 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="26204"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Danny Freeman , Dmitry Gutov , emacs-devel To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 21 17:51: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 1oxA0g-0006aG-Vt for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Nov 2022 17:51:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxA0A-0000yA-Py; Mon, 21 Nov 2022 11:50:34 -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 1ox9zg-0000nZ-BS for emacs-devel@gnu.org; Mon, 21 Nov 2022 11:50:19 -0500 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ox9zd-0003YF-BI for emacs-devel@gnu.org; Mon, 21 Nov 2022 11:50:03 -0500 Original-Received: from localhost (c-71-197-232-41.hsd1.wa.comcast.net [71.197.232.41]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 8295DFA0B9; Mon, 21 Nov 2022 16:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1669049398; bh=Rkox94mWO0dWfZm5/4pDRDBkSH2arkjlMUfKmqpib2o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=pvoXdW94aFwE3NGF3exo7dMfIUty3gij5VPdWr9kyzQEchZIWkP+xV19YsJHHts4h UI4iA13XRDQpVBBhfoj9jQIhdJVyLJfGvW/lUdLxL0iPd8KHz09+KYmSmXCdoCkspM 3/IHM8IEnMeCkHllnG07c/4/VwjM/wX371oS/nck= In-Reply-To: <871qpwbfak.fsf@gmail.com> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?= =?utf-8?Q?a=22's?= message of "Mon, 21 Nov 2022 13:36:19 +0000") Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net 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:300303 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > Eric Abrahamsen writes: > >> I spent some time looking at eglot.el and project.el, and was mostly >> surprised to find how little they need to know about each other. > > In particular, project.el knows nothing of eglot.el :-), as it should. > >> So yes, Danny's "hack" seems quite sufficient. > > Yes. I will soon update the manual to contain=20 Thanks! >> Just a suggestion! > > Thanks, but have you tried setting a dir-local value for > eglot-server-programs? I haven't, but I'm sure that would work fine. On the other hand, it means more points of configuration (quite a few of them), and if we're already returning a manually-constructed project, it would be nice to be able to use that for everything necessary. Projects are so loosely defined, it seems we could get a lot of mileage out of returning a custom project type that held Eglot-specific configuration. I understand you're unenthusiastic about having Eglot fool with project-related configuration, and I understand why, but it seems like this could be a very thin wrapper that was very Eglot-specific. Anyway I don't need to push it. My original problem is solved, I'm glad the documentation is being expanded, and I appreciate being able to move to Eglot! Thanks, Eric