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 09:42:28 +0000 Message-ID: <87edtqrr0b.fsf@gmail.com> References: <87zgcq68zp.fsf@ericabrahamsen.net> <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> <33292672-2a59-ba63-05ab-a7995118a822@yandex.ru> <87pmdau6wo.fsf@gmail.com> <87zgcesg8l.fsf@gmail.com> <79a17a5c-d1c1-ce69-d29a-9127150fb1d7@yandex.ru> 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="22229"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) 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 10:42:10 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 1oyrhK-0005Wf-95 for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Nov 2022 10:42:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyrgX-0006sz-0X; Sat, 26 Nov 2022 04:41:21 -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 1oyrgV-0006sn-4O for emacs-devel@gnu.org; Sat, 26 Nov 2022 04:41:19 -0500 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyrgR-0006pA-4S for emacs-devel@gnu.org; Sat, 26 Nov 2022 04:41:18 -0500 Original-Received: by mail-wr1-x42b.google.com with SMTP id v1so9853852wrt.11 for ; Sat, 26 Nov 2022 01:41:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=t/XKUogCu1loInVOYBdmnMVOwuK0FMASixP4mxrSfDU=; b=aXWsWEzKKGK/48hwU5+FSPAZpVLZPiLo/INKaE+y3MpPCmXBk9Tk3j9A/Zixb5Nnn6 hLRWdMHwwYIWnEH2aNxhe/25RNZTdRDxtVC9UQ0C/M9KFGAHDplv7cNA+xO3SigEE0CA hp87KwZfQ7olfMoi3vg0TpDdEzGpz2mKQV7qgZPmWvkiVcdS5dlv/IEeQ21ZVZNFIIkH haWoaARGuAbMc+bQNAyv0yG50csayXxxI9UYYQAO7RXblvfFyccNZ34QeCMPaAItRQIl UNGiRnWUozvRbp5cXZ+g5zPSky/9f+3I6GTrT3c/E7UNMKezwUdF15IjsYZjJwfKaph6 k1KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=t/XKUogCu1loInVOYBdmnMVOwuK0FMASixP4mxrSfDU=; b=yxOluTMP9MfknSW0/mElWqTXtG1+qH1aVahlj/DW8U6pwr6evKY8qlmTFtNAPJS9tT ZE+Z7j90eu9s1sanaeHScrE6Nx1W5791UKPn9ZScIzr18Dq8jXURMpJfUSILE383etq+ /p5ue+eNzTZEsMx298gP4DNf+tgKHyU6eifd+pTwx4+OdcUdhB96gpO4W1mt6RdWfk3t u/LlzpDru2SYVm+VyY2U+/fF0L1Nc2e6TIz/rLFn5odEIHB93j8g0g8UOopjZlaU2j7Q 0qsVfjzO/X1zR1vV511kcD35zNcoNLuZDhDrlgGxbL4CFmJjMejzp0KIFTx/4/WQV9a3 sydQ== X-Gm-Message-State: ANoB5pkcg6pGcaCfGjryy8sUUBkuwybFwoJtk7MZ4sEvVcL+Ubvnhwrt ywAJkBIIAEP2q4OPN9BBmh6WiiH4gd4= X-Google-Smtp-Source: AA0mqf4ogbgGSd+09tEdWx7fsRApnCD7pkTxAj8fgvJiXGtqtFra+jeDxJhS7FQudcawmCaDi9KbfQ== X-Received: by 2002:a5d:5a12:0:b0:22e:c2a6:d00d with SMTP id bq18-20020a5d5a12000000b0022ec2a6d00dmr19439177wrb.29.1669455672976; Sat, 26 Nov 2022 01:41:12 -0800 (PST) Original-Received: from krug (87-196-72-177.net.novis.pt. [87.196.72.177]) by smtp.gmail.com with ESMTPSA id bg3-20020a05600c3c8300b003c71358a42dsm16144886wmb.18.2022.11.26.01.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Nov 2022 01:41:12 -0800 (PST) In-Reply-To: <79a17a5c-d1c1-ce69-d29a-9127150fb1d7@yandex.ru> (Dmitry Gutov's message of "Sat, 26 Nov 2022 04:05:43 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=joaotavora@gmail.com; helo=mail-wr1-x42b.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, 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:300560 Archived-At: Dmitry Gutov writes: > On 26/11/22 02:37, Jo=C3=A3o T=C3=A1vora wrote: >> Dmitry Gutov writes: >>=20 >>>>>> I can't understand what is discourteous about this. >>>>> That would be not following the procedure the maintainer has asked you >>>>> to follow. >>>> If that means silencing me on emacs-devel, then you're out of luck. >>> >>> Is that what you do when you ask somebody to use the bug tracker? >> I'll use the bug tracker when I think it's appropriate. Let's not >> insinuate I'm some kind of inconsiderate delinquent for not moving the >> discussion there as you would want. I'm not reporting a bug and I've >> politely declined your suggestion, so stop beating this horse. > > Must be nice to be the person who gets to decide what is appropriate > in any situation. As long as this list's maintainer doesn't object, I get to decide where _I_ post to, thank you very much. > By modifying each and every command. I don't think it would be > appropriate for 'project-current' itself to react to the value of > current-prefix-arg. It's very unfortunate to modify "each and every command" unless of course you mean doing it via a uniform interface. I don't understand why these "project" commands that operate on a project don't befittingly take a PROJECT argument. That argument's value could be interactively calculated from a project-read-project-maybe command that decides if and how to prompt. >>> What's missing in the infrastructure? >> Not much, I would say. But I think at least: >> * A way that I can add an element to project-find-functions that >> understands that a super-project has been detected already in the >> current search and proceeds to find sub-projects inside it. This is >> what I posted code for. >> * A way for M-- (or similar) to consistently affect all (or most) of >> the >> operations in the C-x p keymap so that we can choose if the operation >> operates on the super-project, if it exists. Unfortunately some of >> these commands (like project-find-files) already take a prefix >> argument to mean different things. But it's not too bad. >> * A new project type, similar to the '(transient . "dir") project >> (and >> inheriting most of its operations) that also keeps a record of the >> super-project found. This might not be strictly necessary, but could >> come in handy later for efficiency reasons. > > Sounds pretty complicated. See if the latest patch solves your > immediate problems just as well. In your patch to be cramming it all into the VC type (which the comment itself admits becomes "VC and etc.") and trying very hard not to create a new subproject type. But if you did that you could easily e.g. reuse the super-project's ignore rules etc in the sub-project. Jo=C3=A3o