From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#53644: 29.0.50; xref-search-program breaks if programm not installed on a remote host Date: Fri, 04 Feb 2022 09:15:15 +0100 Message-ID: <87iltvnj3g.fsf@gmx.de> References: <87v8y0rdz3.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8119"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Philip Kaludercic , 53644@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 10:01:25 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 1nFuT7-0001zO-FT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 10:01:25 +0100 Original-Received: from localhost ([::1]:51456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFuT5-0008Nr-8Q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 04:01:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFtlC-0003L4-KX for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 03:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFtlC-0004cC-8p for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 03:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFtlC-0003hG-2Z for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 03:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Feb 2022 08:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53644 X-GNU-PR-Package: emacs Original-Received: via spool by 53644-submit@debbugs.gnu.org id=B53644.164396252414165 (code B ref 53644); Fri, 04 Feb 2022 08:16:02 +0000 Original-Received: (at 53644) by debbugs.gnu.org; 4 Feb 2022 08:15:24 +0000 Original-Received: from localhost ([127.0.0.1]:58726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFtka-0003gP-IS for submit@debbugs.gnu.org; Fri, 04 Feb 2022 03:15:24 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:53427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFtkZ-0003gA-CU for 53644@debbugs.gnu.org; Fri, 04 Feb 2022 03:15:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643962516; bh=QpPf2mIYkciCuWg/Bn82unv+8AeLeqgwwyCnzk0/Y+4=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=ONbj+QlGIQlr9YBajrGn6Leaoav7NNthYO8UkDrsG374WHQdfAcYCxo+pcsJBLUOx +V0aevWUnq9/8xCNT0Z3QY4kdK1VZY2FLiffYLzFyyEJSOrera6fLzPKt67YpdqbTS 8zzLk5D6ONGEyrknH25hYFYgJmYOyA9hf+GsY86c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.159.97]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgesQ-1mYtQG1OLk-00h6EX; Fri, 04 Feb 2022 09:15:16 +0100 In-Reply-To: (Dmitry Gutov's message of "Fri, 4 Feb 2022 04:00:17 +0200") X-Provags-ID: V03:K1:l+gLQTLxPPLkxmIrL6Q138NDwPhDa4jlPGKHkdy1lW3pcwbu9Aj gqSHUAu1tNVUQZGfUZIi/jPgiyRnU6n/ETVWMt3Pl/a5jyA2iw7uI9D0rsSoOAqU5Pfyg76 mPaEf1qmqmfXlqYWOs+RTHOeuxhXSnYf1EwsbEim79cVo/6uSEItbgfu0PjTThm9AiyJFuJ vikZMxKT1xq/5dcb1w6QA== X-UI-Out-Filterresults: notjunk:1;V03:K0:nlGhuSJCdtY=:xXaYxQIAj0bAqVcDiOYkIg 1MLmERwM737JhRnScVRT6OEtIx+OVQ5b05YUELnWJ3F1wlAqoLBFSGHNrpfUwEN9ugl/4Z8PV C5bmMBZV4ToP7vDOQv6NJgQBrI61os6nM0MvEmRZ/7SNErvZ0cRcV8bkUMhEi4kMo8bzMnCCu G9BmpF9YMooG/zSq41pHVHjLoLpPOhubCG7SI/UMB8n0NSov5qaTgdxfUslJhkYzss5zs4sVx PyJLjodCOPKr0OrrItBFEPeyVkKHN51egxUZag9Hfh4ew4berlC5uTyHmCl53wphfmo9uwOlC JXNAt4XQCcy7/c2IlsFTbPPwm3YDL/aoOS2NNHlE4RRMQDAsMOkb3tILixuActnO49wsJ3GM1 ejQPdCHveRK2CT5bpIGQDyIozgDdE8bnYNr2/QaghMcP23N7RLtcp/z44zhpNquEQi28YCVWB JZWgAgwhxlTp8WHPBSWSpsiKvriJ9MkwL63Ubq+OcMCbHJ/dYavxY7/gV5MX1iQNb+wVXLWZ5 St1CViQgeOjloaLDHBoWDD9BO7ZIYGNDOcwEWZm241+PERND6iCKg1xKcQCU4Nruy3YxyR3Br XKZdKbc6eI5EpJDNYSl7FzQRlievAX85BoPwIY6oczy1WcN+UwIMtgcMh6rUrLCMYDTaY0etv sfU4szFPcsin4rpwW7hbwAiYRJsVR/yV5PQicSnF4E1CzX6Oza6PLVBBwt6G2sH5y/3Tc2xME rmzdRcHMI5Ya6DEFbRmZ8MBzHAXndNQSUQL70S18PdV/8jFTbKcs8A8tG2abCBK5Z2spA6tW 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" Xref: news.gmane.io gmane.emacs.bugs:225971 Archived-At: Dmitry Gutov writes: > Hi Philip, Hi Dmitry, >> When invoking a command that respects xref-search-program via TRAMP, >> e.g. on a remote system that doesn't have (in my case ripgrep) >> installed, an error is signalled indicating that the search query >> couldn't be executed. > > One way to work around this will probably involve an addition to > find-file-hook and some code which checks (file-remote-p > buffer-file-name) and sets xref-search-program to a particular value > buffer-locally depending on the result. > > Or an around-advice for xref-matches-in-files. There are connection-local variables exactly for this use case. > A proper solution would probably look more similar to > grep-host-defaults-alist and grep-compute-defaults. On my wishlist, there is moving grep-*-defaults to connection-local variables. But I fear it will break too many existing configurations. Best regards, Michael.