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#71762: `(project-files (project-current))` with `project-vc-extra-root-markers` doesn't work on Windows. Date: Tue, 25 Jun 2024 16:29:50 +0300 Message-ID: References: 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="25942"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Siyuan Chen , 71762@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 25 15:31:29 2024 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 1sM6Ge-0006cA-HA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jun 2024 15:31:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sM6GE-0003Ei-H7; Tue, 25 Jun 2024 09:31:02 -0400 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 1sM6GD-0003EZ-Fr for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 09:31:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sM6GD-00036J-5l for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 09:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sM6GD-000411-PN for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 09:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jun 2024 13:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 71762-submit@debbugs.gnu.org id=B71762.171932220315262 (code B ref 71762); Tue, 25 Jun 2024 13:31:01 +0000 Original-Received: (at 71762) by debbugs.gnu.org; 25 Jun 2024 13:30:03 +0000 Original-Received: from localhost ([127.0.0.1]:36493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sM6FH-0003y5-0T for submit@debbugs.gnu.org; Tue, 25 Jun 2024 09:30:03 -0400 Original-Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]:36773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sM6FE-0003xA-7x for 71762@debbugs.gnu.org; Tue, 25 Jun 2024 09:30:01 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 172671140161; Tue, 25 Jun 2024 09:29:53 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 25 Jun 2024 09:29:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1719322193; x=1719408593; bh=u8GhlsowGA7j/RurQSnwKzHKAVryyDCXYE9pUB8uvRY=; b= Rc4BGcDVbrBDulD/pdXiUEIvPz79oDqE1zyQnnsgXWi0StAeFWR4o69e/jVI9oWD 6dE956KHWPTVzscriL5dVjeS4NFU/0Qt7G5S/KZ+pFdYupMBDVkGfjsIUPcfNl4u srYqjtvZuGH1bwnstUP99b1nuJBJqgfkGZ0G8u2mfg89Eax7wCS8wd7Qm0pGXW7Q 2jHKK0brwpq0yXW6FKEMzBetezwPKTU6CAhTsLk9WpeeKdaXQWVVAalgQW43zrWT TE/pdutXXQBdnzqhWFX/QqCaLiHKg9Yz0PodkdtwYT/MqFgFU6gXBr/f/YY37gyN VbAs9npLSmfJ2CMG8pquNQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1719322193; x= 1719408593; bh=u8GhlsowGA7j/RurQSnwKzHKAVryyDCXYE9pUB8uvRY=; b=X ZHUSHcoOSkK2eBCDRbaJfz0ngut8wNhSR6hGki9oLOqqHW2Kj3VfpDAsGZ7zb0e1 b6ROD5kvkNibvGaR72XXrvlMECAszT/nCRNClOU+sLagS3NCj2rh7Kf9rsIbg9y6 0pr7G0jlvXJwEUCoa9OdFaEof2RmMNA1+lYmSqz7GByHEiMFX8VVbBVYrVcYmbUL BgAOULm1Zr9hqWI/8tJoBIgXV7T9dNB6/2oUFcRk1t4AbrGBPkiO1P9G+K9xMgOb QDwaNliqN7LFEHCAROow+ktj2dcJGOHz7kvUnKzSnyKU3YXKMwj1EZW5HrVPHMMA mXJ2u0MDk9Inh4noaoJ4g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrtddtgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthejre dttddvjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhht ohhvrdguvghvqeenucggtffrrghtthgvrhhnpedthfeuvddtveelgeeuleevvdejveehff evveehvdeuffdtfefhvdeugefgtefgtdenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Jun 2024 09:29:51 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:287889 Archived-At: On 25/06/2024 00:35, Siyuan Chen wrote: > > Is it possible to use more portable code? For example, > `directory-files-recursively`? Otherwise NTEmacs users will have to > install CYGWIN or MSYS2. There are also GNU tools available for download separately, e.g. see the ezwinports project. I'm wary of using directory-files-recursively - because the performance can be much different. While right now you see the error and are thus encouraged to fix it by installing an extra program or two, in the other case the user would just see poor performance (given a large enough project) and perhaps some reduced features wrt filtering. And might not realize that it's not how the feature is supposed to work. Also note that 'find.exe' is only required when you have a project that's outside of any Git repositories. > P.s. I have used Projectile before, which allows you to place a > .projectile file in `myproject` and everything was OK on Windows. Also > if I focus on a git folder e.g. `subproject1` in the example above, the > `project-files` also works well. Projectile has some different tradeoffs, e.g. you might have to reset the file cache manually in the above setup. It also has several indexing methods to choose from, each with pros and cons.