From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 15:45:33 +0300 Message-ID: <86wmmd9onm.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14558"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71762@debbugs.gnu.org To: Siyuan Chen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 25 14:46:28 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 1sM5Z5-0003ZX-16 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jun 2024 14:46:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sM5Yk-0001PW-Do; Tue, 25 Jun 2024 08:46:06 -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 1sM5Yf-0001P0-Bn for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 08:46: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 1sM5Yf-0003GA-3S for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 08:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sM5Yg-0005ME-Ee for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 08:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jun 2024 12:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71762 X-GNU-PR-Package: emacs Original-Received: via spool by 71762-submit@debbugs.gnu.org id=B71762.171931954920568 (code B ref 71762); Tue, 25 Jun 2024 12:46:02 +0000 Original-Received: (at 71762) by debbugs.gnu.org; 25 Jun 2024 12:45:49 +0000 Original-Received: from localhost ([127.0.0.1]:36437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sM5YT-0005Le-AS for submit@debbugs.gnu.org; Tue, 25 Jun 2024 08:45:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sM5YQ-0005LM-RJ; Tue, 25 Jun 2024 08:45:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sM5YJ-0003Cu-OV; Tue, 25 Jun 2024 08:45:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+NO9onsQK4MrL7RWpDRl8hlJY7Zz1il8Zdztyfmfjr4=; b=UnoxLy5jsyZe FmmUy53E6r3H43e10R2Ry2gum2vXyWUMuFn7Mf99TwtL/ZYxNdXO16QqKp8mqN9AloXbrI/3mHS2E jBUD90I7yGBp81fackmRd3FUjM0IcRXSIRqqfApp6RotKIoYyf5HK0japPZrp1Qz/SecZ+C94Qfen 4rSoJYRwuWFcP/HAbd0GxOBvakrdcZbNMIaJ4SF0YtexWPSmteAcyFfOdHedGXAd/gK7J2FergVMp SqjWCfyTVo7f4KAvRaxsleSXxqbXe6KzSdL8rS33P2dz3D5M7qEwRzeWwQkRtNYTNnAbln6apAebZ 3yFwSCpAZWrmXCxdHLX83A==; In-Reply-To: (message from Siyuan Chen on Tue, 25 Jun 2024 08:04:48 +0800) 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:287884 Archived-At: tags 71762 notabug thanks > From: Siyuan Chen > Date: Tue, 25 Jun 2024 08:04:48 +0800 > > Anyway, setting `(setq find-program (purecopy "C:/msys64/usr/bin/find.exe"))` makes the above example work > at the moment. That's one possible solution. Another is to rearrange your system's PATH so that the directory C:\msys64\usr\bin comes _before_ the C:\WINDOWS\system32, where you have the stock Windows find.exe (which is a program for a completely different purpose and with completely different command-line syntax). Byw, the "msys64" part of the directory where you have find.exe seems to hint that it is an MSYS port, not a native Windows/MinGW port. If that is indeed so, my recommendation is to install a native find.exe and use that instead, as MSYS ports could have subtle incompatibilities with a native Windows Emacs. > Perhaps all NTEmacs users should set the 3 options: grep-program, find-program, xargs-program. These variables already exist, so I'm not sure what you are suggesting here. In general, the only "problematic" program is find.exe, because Windows comes only with that. The other two programs must be installed, and so there's no danger of Emacs invoking the wrong one. I see no Emacs bug here, just an issue of configuring your system and/or Emacs correctly. > My only > concern now is the potential issue with backslashes and encoding. There should be no such issues, if you find one, please report that as a bug.