From: Michael Albinus <michael.albinus@gmx.de>
To: Philip Kaludercic <philipk@posteo.net>
Cc: 53644@debbugs.gnu.org, Dmitry Gutov <dgutov@yandex.ru>
Subject: bug#53644: 29.0.50; xref-search-program breaks if programm not installed on a remote host
Date: Tue, 08 Feb 2022 19:30:54 +0100 [thread overview]
Message-ID: <87a6f1tdlt.fsf@gmx.de> (raw)
In-Reply-To: <87k0e5uvtp.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 08 Feb 2022 17:12:02 +0000")
Philip Kaludercic <philipk@posteo.net> writes:
Hi Philip,
> Ok, I missed that. But the question still remains for versions of Emacs
> prior to 27.1. What would you advise to do there?
>
> For context: In my specific case, I am using Guix so shell-file-name
> something like
> /gnu/store/87kif0bpf0anwbsaw0jvg8fyciw4sz67-bash-5.0.16/bin/bash.
> Virtually every server I might connect to does not have this path (tough
> "/bin/sh" works in that case (which would break other systems like
> adb)). So I don't think a version check would suffice. All it does in
> the patch I provided above is provide a speedup for all greps after the
> first one.
I would do something like this (untested!):
--8<---------------cut here---------------start------------->8---
(defmacro my-with-connection-local-variables (&rest body)
"Ensure, that `shell-file-name' and `xref-search-program' have proper values."
(if (bound-and-true-p enable-connection-local-variables)
`(with-connection-local-variables ,@body)
`(if (file-remote-p default-directory)
(let ((shell-file-name "/bin/sh") ;; Adapt
(xref-search-program "/bin/gerep")) ;; Adapt
,@body)
,@body)))
--8<---------------cut here---------------end--------------->8---
Best regards, Michael.
next prev parent reply other threads:[~2022-02-08 18:30 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-30 23:38 bug#53644: 29.0.50; xref-search-program breaks if programm not installed on a remote host Philip Kaludercic
2022-02-04 2:00 ` Dmitry Gutov
2022-02-04 8:15 ` Michael Albinus
2022-02-04 19:45 ` Dmitry Gutov
2022-02-05 14:38 ` Michael Albinus
2022-02-07 2:57 ` Dmitry Gutov
2022-02-07 9:18 ` Michael Albinus
2022-02-07 18:34 ` Michael Albinus
2022-02-08 11:15 ` Philip Kaludercic
2022-02-08 14:59 ` Michael Albinus
2022-02-08 17:12 ` Philip Kaludercic
2022-02-08 18:30 ` Michael Albinus [this message]
2022-02-08 21:16 ` Philip Kaludercic
2022-02-09 7:55 ` Michael Albinus
2022-02-09 9:17 ` Philip Kaludercic
2022-02-12 1:04 ` Dmitry Gutov
2022-02-14 13:57 ` Philip Kaludercic
2022-02-14 14:40 ` Dmitry Gutov
2022-02-14 17:32 ` Philip Kaludercic
2022-02-15 1:27 ` Dmitry Gutov
2022-02-15 16:32 ` Philip Kaludercic
2022-02-15 16:33 ` Dmitry Gutov
2022-02-15 16:37 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a6f1tdlt.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=53644@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=philipk@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.