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.bugs Subject: bug#41572: 28.0.50; [PATCH] Support plain project marked with file .emacs-project Date: Sun, 27 Nov 2022 23:41:59 +0200 Message-ID: References: <87d06ck2b0.fsf@thornhill.no> <2fbe5d5d-03a1-212b-9dd7-4723e168ad06@yandex.ru> <5EpzudgjedeKADsX4_Tq-2WtNm3XKXmZjnEI7Y1lmw-Pcn_KrzKPD1o31Ele0JOIrZ1ITDdeQrOsJTHfGVPJlzyLhmqjxP3rmVVzou8KEBo=@thornhill.no> <2a70c748-e250-2f96-5d74-712b6d71e8be@yandex.ru> <871riitzch.fsf@gnus.org> <9781acc2-e4c0-b53c-6422-ef2e0a96f400@yandex.ru> <83sfi6tavq.fsf@gnu.org> <83mt8dssdn.fsf@gnu.org> <29c1c5f3-b189-ff30-c5bc-92a4d35e0683@yandex.ru> <83fse4rj2s.fsf@gnu.org> <2bc8b5dd-83c9-8bbc-82d5-e296f60e47c3@yandex.ru> <83lenwpj5k.fsf@gnu.org> <83fse4pctt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11588"; 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: philipk@posteo.net, rudi@constantly.at, eric@ericabrahamsen.net, cjpeople2013@gmail.com, theo@thornhill.no, mardani29@yahoo.es, joaotavora@gmail.com, manuel.uberti@inventati.org, juri@linkov.net, salutis@me.com, arstoffel@gmail.com, 41572@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 27 22:43:12 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ozPQe-0002hM-6P for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Nov 2022 22:43:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozPQX-0004W7-9N; Sun, 27 Nov 2022 16:43:05 -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 1ozPQV-0004VZ-JM for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2022 16:43:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ozPQV-0004pd-B2 for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2022 16:43:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ozPQU-00014J-9Y for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2022 16:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Nov 2022 21:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41572 X-GNU-PR-Package: emacs Original-Received: via spool by 41572-submit@debbugs.gnu.org id=B41572.16695853314095 (code B ref 41572); Sun, 27 Nov 2022 21:43:02 +0000 Original-Received: (at 41572) by debbugs.gnu.org; 27 Nov 2022 21:42:11 +0000 Original-Received: from localhost ([127.0.0.1]:44369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozPPe-00013z-Pw for submit@debbugs.gnu.org; Sun, 27 Nov 2022 16:42:11 -0500 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:41563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozPPc-00013t-0G for 41572@debbugs.gnu.org; Sun, 27 Nov 2022 16:42:09 -0500 Original-Received: by mail-wr1-f45.google.com with SMTP id q7so13171330wrr.8 for <41572@debbugs.gnu.org>; Sun, 27 Nov 2022 13:42:07 -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=N4FK65tX1hdX+aU3FxjL+17rkN5jp2jzHtwkpdTOKNU=; b=arSflOq9AcsIUGzTlNMgPPtmcckZqfb9xyUPd27OfcTSm7ZEibDk37oRacCq2MGuCx AVgH03baLKZDfMXGVUeiybNxviNsGJIx9fgwZf/8iHpXrSmOIoVvHdzdBoEvjYGEHcja oGBfYo1xpzmG+dCIDsk9G6o7vWhv05gToxQWgMP7F4j7DAFP5mqvBVPf7sPpioEhVj0P iaF8mbnlkoZSjcly6mj7PYNw/PM0mRTUa0fzxtQP+bL+JkWzvidmQcXeGO4T8U0hC0YE xu6NM2T1/oYURpa6qPIvMHoUKzREXEzDU6qBsWggINFauPfXkxrXbai22eObb8HEtYtU XmmQ== 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=N4FK65tX1hdX+aU3FxjL+17rkN5jp2jzHtwkpdTOKNU=; b=E5BJcBfFA2cMeGOmPbw9mfSCgUhydcBneGZ1Cx3ooZ8l0Tl66/AOiu4r7CkkNg7gVa uinQlBGwYzcDOdpjS2D5hN+Y3pgcRiOLT9u9xna6RUHKWCZk8tqoK0mrg/LtXPfG6MJH BaputiFVNFveAiXEwXIFA1eZks+0qfsaqMjRrQv8LBC1BLZwV6yySzELHzWKgQ7gOJcH C9OvXEFoHLYdq3BkDcxr0le/PzHX+dpK2M3dxwXtrHUqN3HqaIbf6khaVPoW+vtgY9G2 1bLZTa+XlnXUoruv8HSbkDui7XcP1Rkwm3TbCil6p4SdCRCmq6Dx4nbgBJWizy9R2wa/ cWvQ== X-Gm-Message-State: ANoB5pmqhMGmx7LYJFn3LbjqREJoQuNDNs7zjaw6C6mNpw3pvROSEQFN CYtOqxYmGiPTjv/Lws7fPa8= X-Google-Smtp-Source: AA0mqf4do0aPYsV3elFKHAbFW8H4EbGYUCf2TxRg362Z2cfMBkCMPyNOZ8dJAcliRXMuHWeAFd0vig== X-Received: by 2002:adf:f352:0:b0:241:fd11:dcd with SMTP id e18-20020adff352000000b00241fd110dcdmr10716134wrp.706.1669585321967; Sun, 27 Nov 2022 13:42:01 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id n16-20020a05600c501000b003c21ba7d7d6sm12869838wmr.44.2022.11.27.13.42.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Nov 2022 13:42:01 -0800 (PST) Content-Language: en-US In-Reply-To: <83fse4pctt.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249249 Archived-At: On 27/11/22 18:43, Eli Zaretskii wrote: >> Date: Sun, 27 Nov 2022 17:51:45 +0200 >> Cc:philipk@posteo.net,rudi@constantly.at,eric@ericabrahamsen.net, >> cjpeople2013@gmail.com,theo@thornhill.no,mardani29@yahoo.es, >> joaotavora@gmail.com,manuel.uberti@inventati.org,juri@linkov.net, >> salutis@me.com,arstoffel@gmail.com,41572@debbugs.gnu.org >> From: Dmitry Gutov >> >> On 27/11/22 16:27, Eli Zaretskii wrote: >> >>> (Btw, why "VC project"? can't I use marker files for non-VC projects?) >> Yes, you can. That's what the docstring says: "can also be used for >> projects outside of VC repositories". >> >> But "VC project" is a proper noun in this usage. Basically, a "VC >> project" is whatever value (if non-nil) that is returned by project-try-vc. > Then maybe change that to something like > > A directory containing such a marker file or a file matching a marker > pattern will be recognized as the root of a project whose type is > "VC project". If you say quote help, it's fine by me. > The point of this is to tell that those markers indicate projects whose type > just happens to be "VC project". Otherwise the above could be interpreted > that the markers can be used only inside VC projects. Sure. >> Like the patch also says (and what's given me a pause in the past), that >> also makes "VC project" somewhat a misnomer. But I'm not sure what to >> call them better > How about VC-backed project? Is that different? I would say it might be worse: "VC-backed" sounds like a project that must correspond to a VC repository (be "backed" by it). OTOH a new term we could use would stand for something like: a project type which will recognize the enabled kinds of VC repositories and use their roots as project root, and knows how to use certain VC systems to speed up the fetching of files, and knows about Git submodules, but also recognizes other directories (inside or outside of VC repositories) based on configurable conditions.