Subject: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file

From: Michael Albinus <[email-masked]>
Date: Tue, 28 Feb 2023 16:44:43 +0100

João Távora <[email-masked]> writes:

Hi João,

>> "Patches welcome" means "send patches" :-)
>
> Here you go :-)
>
> diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
> index eaddc36b54a..d841bbf60e6 100644
> --- a/lisp/net/tramp.el
> +++ b/lisp/net/tramp.el
> @@ -1372,7 +1372,9 @@ tramp-remote-path
>
>  `Private Directories' are the settings of the $PATH environment,
>  as given in your `~/.profile'.  This entry is represented in
> -the list by the special value `tramp-own-remote-path'."
> +the list by the special value `tramp-own-remote-path'.
> +
> +Also RFTM."
>    :group 'tramp
>    :type '(repeat (choice
>     (const :tag "Default Directories" tramp-default-remote-path)

Ah, you mean

diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index eaddc36b54a..b24bd33de82 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1372,7 +1372,9 @@ tramp-remote-path

 `Private Directories' are the settings of the $PATH environment,
 as given in your `~/.profile'.  This entry is represented in
-the list by the special value `tramp-own-remote-path'."
+the list by the special value `tramp-own-remote-path'.
+
+For a full discussion, see Info node `(tramp) Remote programs'."
   :group 'tramp
   :type '(repeat (choice
 		  (const :tag "Default Directories" tramp-default-remote-path)

Pushed to the emacs-29 branch.

Best regards, Michael.