From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Subprojects in project.el (Was: Eglot, project.el, and python virtual environments) Date: Thu, 24 Nov 2022 04:49:19 +0200 Message-ID: <71addecc-373e-b1f0-f190-0ce3531626a8@yandex.ru> 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> <2ba04533-097a-a1da-ff3f-2c9506fd488e@yandex.ru> <875yf9bbzb.fsf@gmail.com> <87wn7oa0aw.fsf@gmail.com> <7a5b76fd-fb15-8c1e-ea29-bf11f7e0d2ae@yandex.ru> <87bkoya815.fsf@gmail.com> <0024a67d-b8e5-b35c-1b22-82541a170eb3@yandex.ru> <871qptai4d.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5371"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: Stefan Monnier , Danny Freeman , Eric Abrahamsen , emacs-devel To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 24 03:50:28 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 1oy2Jn-0001EA-Op for ged-emacs-devel@m.gmane-mx.org; Thu, 24 Nov 2022 03:50:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy2Is-0005fw-MT; Wed, 23 Nov 2022 21:49:30 -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 1oy2Iq-0005fe-8F for emacs-devel@gnu.org; Wed, 23 Nov 2022 21:49:28 -0500 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oy2In-0000Nc-6n for emacs-devel@gnu.org; Wed, 23 Nov 2022 21:49:27 -0500 Original-Received: by mail-wr1-x430.google.com with SMTP id x5so528569wrt.7 for ; Wed, 23 Nov 2022 18:49:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=dqBVyr/5xWe+OFo72z4i7e5p9bvDAjKafKRFO/R0XU8=; b=VMbVW6Q/8XJddENvGTsUEdBV7fOc+Jo46HI9IoOBAamuAi/jybSiO+ORTj9DS7HLHF VFUx5s+BOB/PH+bwBRQIPFuMPCNL0u+kqYc+RJgbJArs4zSEMKpI6MgWf4u/TGI0iRxk T4n2BPvwqZkhSs7qmAKEk0Bmxxo7x1wsbvu3V/rJ9UAyvzuV7VBP183MaO3PHqVkAGQk t4mKPMlWbDhLgM6ITV5bURytsGvejFq5Kle1eiizHcZJchQo0Jt5q90muS2Yo9KpAxEc tIWJPdM59IggVGoFeGTqL+/JrLEI5J+xANZgAXLMM91yP+Q78nXbsg7QuU/0wMqXVK5j 0wIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dqBVyr/5xWe+OFo72z4i7e5p9bvDAjKafKRFO/R0XU8=; b=GyoYkSM3rsAG0WhSQlD/Fgi2w9+t9fEBlEReHpaHZsOPOpbphfW81E40u16gsbBWOn W5cty2l90xKGYnlJ0Bkm0Mg1ODQ6hSFHh56g0qWn6QdFAHurelcxVkNX4Pww3MnPswQv nZUbRFs3BMLyrL0ScupaG57sV80N/3BDJTu8oAXssMczzKVgUPXzLZ1p+/fXBXUU/RI3 +tCyEK+0DHif0+aOQGTaHZ2ATY2WmiZXpKXi67UA3Q4BJDFdSeGZ3z91ry7gy1xDswMh k2ieSG2qC9/IQtyjQw64jUJs7fojauPgcguCeem6c9SolaE0YKmnabs6i9zKaiJxGdl5 KSUA== X-Gm-Message-State: ANoB5plIU2G4dlqUeLPsLR+GPaqu7mMnEsNabrGHzuKi65PUTTfrBuV2 QH9N8FGNweKQsmzIKem8ijA= X-Google-Smtp-Source: AA0mqf7DzGpZJIbHxMbkvwf9HpwBXu5WrqB7L+PxeFEoWP1FpAgg2iwUG5scNFFEKh69Wz2rjFLXww== X-Received: by 2002:a5d:55ca:0:b0:241:bee5:132f with SMTP id i10-20020a5d55ca000000b00241bee5132fmr10768556wrw.450.1669258161953; Wed, 23 Nov 2022 18:49:21 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id y14-20020adff14e000000b00226dba960b4sm44479wro.3.2022.11.23.18.49.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Nov 2022 18:49:21 -0800 (PST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=raaahh@gmail.com; helo=mail-wr1-x430.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.173, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:300413 Archived-At: On 23/11/22 22:33, João Távora wrote: > For my idea to work, project-current would have to be changed to > > 1. Call all members of project-find-functions: return the innermost >    project found thus far. > 2. Not call project-find-functions recursively when called from within a > function >    in project-find-functions, just return the innermost project found >    thus far. > > I don't see any big performance problems in this alternative. Might not be much of a difference in a simple configuration, but going up and down dirs is not free even on a fast SSD, especially as the number of the elements on this hook grows. But where you will definitely see a difference, is when using this with Tramp.