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: Subprojects in project.el Date: Sat, 26 Nov 2022 19:36:19 +0000 Message-ID: References: <87zgcq68zp.fsf@ericabrahamsen.net> <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> <71addecc-373e-b1f0-f190-0ce3531626a8@yandex.ru> <50bf9e49-23f0-0966-f619-88bcf35479fa@yandex.ru> <871qpqvme6.fsf@gmail.com> <184362df-01c7-0771-28b4-a87ea52ca45e@yandex.ru> <874jumtwic.fsf@gmail.com> <87mt8errvz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000611f8d05ee64c120" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17846"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Danny Freeman , Eric Abrahamsen , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 26 20:37:09 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 1oz0z7-0004VS-19 for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Nov 2022 20:37:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oz0ya-0005ZS-SW; Sat, 26 Nov 2022 14:36:36 -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 1oz0ya-0005ZI-7N for emacs-devel@gnu.org; Sat, 26 Nov 2022 14:36:36 -0500 Original-Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oz0yX-0006h6-Kr for emacs-devel@gnu.org; Sat, 26 Nov 2022 14:36:34 -0500 Original-Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-141ca09c2fbso8754850fac.6 for ; Sat, 26 Nov 2022 11:36:33 -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=c093Ee0DUoWPMPzIzD8aE0+LkIuYtJ14QbPbKec6IqE=; b=PAHdwl4lc8eCt+iDR9hZ4a88auAPsuCvIfbZt13TFjlYhZOKfyHhwcu34WBqg8pSJS Wh127CcrN266VDE+QRG9+jgHwcvlm77Szx701CpCZkoyX3NcAABHwMEZeJigniJpIGpT aIPJ06cpRWO0u06uFFO6+6AoWj7hd+Xl3h5ssuKwdElpaJOqqy0O17kqWOrsgcg+4Fl9 Te54U/5ItMhtyeiqny/KDH2eROqyOZ4D/yWGdVidhrW8dgWyI09MB8ROHtkNC1mX5XDL lNRwkDQjtPCG+z6ZEFoEXhRTibrJJwX9hzf0DtcVV/p+ow/08kFVOMfLmiOxxvWXQVh9 +Ktw== 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=c093Ee0DUoWPMPzIzD8aE0+LkIuYtJ14QbPbKec6IqE=; b=IPL5LkJrrqKOtO0RWv4FK/2F5/omBM0DkFdSeJymrPW6iL0LjgfHAOyEb4G31G0pe4 Fkf6SW6TSwmcfvhua10O6CgpKmn/2KqOKkOJQrImnJywYgnbuSBtaDUmCQNX70qSwcDP RD3uRRIw5d3UQU4vrz52ubdk2nvag2hZdZKX9C5/ZxZ/J1xhNlPrOCLhNMwlfFBSadbk DRo4R8P8ZhURxhpVMRO//S4CjvBGyFi8n2c7SElSiY5RPJHDUR5Ie1JLNd0IlyJWzXFN X+29+bf5qOW7AYJzQpWIjvcZqfNfArN77MMF1JmHda+DNFJL/hqxMcfU2jYTacVMXOG+ TJOA== X-Gm-Message-State: ANoB5pn6x1F2C8BJ4zlKXQ2IBLDAycERTHQG3X6Dhm/yN4ky6kzMDai2 ico8ZH3/+9ZgG7hFI2ChaBapsDaG7NuvgScQN1o= X-Google-Smtp-Source: AA0mqf4lkTacO+Pe8myB0SbPflG6hpsp77xs1jlsRlu/TnxrkMxqlymSArh5Hgofp89bEyUhBVaQ6zLZ+ArpY7D/4Zg= X-Received: by 2002:a05:6871:4590:b0:132:a103:ae22 with SMTP id nl16-20020a056871459000b00132a103ae22mr24944333oab.215.1669491392059; Sat, 26 Nov 2022 11:36:32 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2001:4860:4864:20::2a; envelope-from=joaotavora@gmail.com; helo=mail-oa1-x2a.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:300586 Archived-At: --000000000000611f8d05ee64c120 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Nov 26, 2022, 13:34 Dmitry Gutov wrote: > On 26/11/22 11:23, Jo=C3=A3o T=C3=A1vora wrote: > > Dmitry Gutov writes: > > > . > > Previously you said: > > > Fwiw, Danny's tip is what I used at a recent day job gig for defining > subprojects in a 400k files repo. > > where Danny's snippet looked like: > > (defun project-find-project.el (dir) > "Returns a `manual-project' instance if the project of the current > DIR has a .project.el file in its root directory." > (let ((root (locate-dominating-file dir ".project.el"))) > (when root > (cons 'transient root)))) > > (add-hook 'project-find-functions #'project-find-project.el) > > ...but you didn't use marker files? Or you don't want to use them > anymore? I'm really confused here. > Don't be confused, this is not hard. I used code similar to Danny's, meaning i used a similar function that uses eglot-lsp-context (which you omitted) but it uses simply path names. I can't use marker files in that large project nor do I want or need to. I don't have a way to choose the subject of project operations, hence all this discussion. Jo=C3=A3o > --000000000000611f8d05ee64c120 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Nov 26, 2022, 13:34 Dmitry Gutov <dgutov@yandex.ru> wrote:
On 26/11/22 11:23, Jo= =C3=A3o T=C3=A1vora wrote:
> Dmitry Gutov <
dgutov@yandex.ru> writes:
>
.

Previously you said:

=C2=A0> Fwiw, Danny's tip is what I used at a recent day job gig for= defining
subprojects in a 400k files repo.

where Danny's snippet looked like:

=C2=A0 =C2=A0(defun project-find-project.el (dir)
=C2=A0 =C2=A0 =C2=A0"Returns a `manual-project' instance if the pr= oject of the current
=C2=A0 =C2=A0DIR has a .project.el file in its root directory."
=C2=A0 =C2=A0 =C2=A0(let ((root (locate-dominating-file dir ".project.= el")))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(when root
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(cons 'transient root))))

=C2=A0 =C2=A0(add-hook 'project-find-functions #'project-find-proje= ct.el)

...but you didn't use marker files? Or you don't want to use them <= br> anymore? I'm really confused here.

Don't be confused, this is not ha= rd.=C2=A0 I used code similar to Danny's, meaning i used a similar func= tion that uses eglot-lsp-context (which you omitted) but it uses simply pat= h names. I can't use marker files in that large project nor do I want o= r need to.=C2=A0 I don't have a way to choose the subject of project op= erations, hence all this discussion.=C2=A0

Jo=C3=A3o
--000000000000611f8d05ee64c120--