From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#53644: 29.0.50; xref-search-program breaks if programm not installed on a remote host Date: Mon, 14 Feb 2022 13:57:08 +0000 Message-ID: <87leydy2iz.fsf@posteo.net> References: <87v8y0rdz3.fsf@posteo.net> <87iltvnj3g.fsf@gmx.de> <3b4cfff4-4d95-9f8e-d5ec-db6cc492a9b8@yandex.ru> <87leypml9i.fsf@gmx.de> <01015f05-e40c-c18a-8b03-5012a3cb44ba@yandex.ru> <875ypp624b.fsf@posteo.net> <87iltptnem.fsf@gmx.de> <87k0e5uvtp.fsf@posteo.net> <87a6f1tdlt.fsf@gmx.de> <87bkzhrrd2.fsf@posteo.net> <875ypotqwj.fsf@gmx.de> <878ruk4cwo.fsf@posteo.net> <828ff352-8a6c-b768-a4cc-427f6fd955f7@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7722"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Albinus , 53644@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 14 15:38:49 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 1nJcV6-0001pv-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Feb 2022 15:38:48 +0100 Original-Received: from localhost ([::1]:43812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJcV5-0001OZ-HW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Feb 2022 09:38:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJbre-0003rn-8l for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2022 08:58:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJbre-0001ph-00 for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2022 08:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nJbrd-0002Ga-Se for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2022 08:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Feb 2022 13:58:01 +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.16448470408657 (code B ref 53644); Mon, 14 Feb 2022 13:58:01 +0000 Original-Received: (at 53644) by debbugs.gnu.org; 14 Feb 2022 13:57:20 +0000 Original-Received: from localhost ([127.0.0.1]:40316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJbqx-0002FZ-Nd for submit@debbugs.gnu.org; Mon, 14 Feb 2022 08:57:19 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:42827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJbqu-0002FI-Pc for 53644@debbugs.gnu.org; Mon, 14 Feb 2022 08:57:18 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8861C240028 for <53644@debbugs.gnu.org>; Mon, 14 Feb 2022 14:57:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1644847030; bh=fYg5fMdESgZodb6cKyfHYki3cmzIHjoeJ/HfFHUDOWk=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=CYaG2FDs/+5NNSGvhtvY5uRRhdFHkCinE2l9auWYloin+nborKpjB2StgfGNwKd59 +MX1VRo9imfb44Ol2dakM0LJmlsBazzIM3kuLjz4+m1V8z1ly4pcqeOHHAd2Yn1j4a voIB7gf5WbPAE74rwaVGz8CcfaA3PCc4KpuA/UqO/DkvrFkZsQMZ4uUOeWoRV1JqRt p/GQwwmMRI18s8nTxRPjy2afzyQnicJxMOYwszfUPARDxEwmn5/9xZ3oRDUy0m9mA/ O6xS0XF17CfMcd01HgJiLy+TU/RVS3pTzgQCC41oZMioSeVona++Sd4YVPSntFfxB8 ZbORMJv+3q1Vg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Jy5Pd4mlMz6tnM; Mon, 14 Feb 2022 14:57:09 +0100 (CET) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB In-Reply-To: <828ff352-8a6c-b768-a4cc-427f6fd955f7@yandex.ru> (Dmitry Gutov's message of "Sat, 12 Feb 2022 03:04:02 +0200") 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:226887 Archived-At: Dmitry Gutov writes: > On 09.02.2022 11:17, Philip Kaludercic wrote: >> In that case, I'd propose this patch: > > Thanks! > > Could you extract the detection logic to outside of the main function? > I think the result would be easier to read. The diff, too. Ok. > And use a simpler test: (only when the host is remote) write some text > to a file in the temp dir, then search through it. Only doing it once, > of course, when the connection-local value is initialized. I am afraid I don't understand what you mean here, specifically "some text". > I'd prefer an even simpler test than that, but I guess the current > structure of xref-search-program-alist doesn't give us specific values > to call 'executable-find' on. And that's probably fine. > -- Philip Kaludercic