GNU bug report logs - #76955
30.1; php-ts-mode-php-executable default path may not match remote path

Previous Next

Package: emacs;

Reported by: Morgan Willcock <morgan <at> ice9.digital>

Date: Tue, 11 Mar 2025 20:11:02 UTC

Severity: normal

Found in version 30.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 76955 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Morgan Willcock <morgan <at> ice9.digital>
Cc: v.pupillo <at> gmail.com, 76955 <at> debbugs.gnu.org
Subject: Re: bug#76955: 30.1;
 php-ts-mode-php-executable default path may not match remote path
Date: Wed, 12 Mar 2025 14:50:03 +0200
> Cc: Vincenzo Pupillo <v.pupillo <at> gmail.com>
> From: Morgan Willcock <morgan <at> ice9.digital>
> Date: Tue, 11 Mar 2025 20:09:37 +0000
> 
> 
> 
> The default value of php-ts-mode-php-executable is determined by
> searching for a php binary locally, but the found path may not work for
> TRAMP connections to a remote system:
> 
>   (defcustom php-ts-mode-php-executable (or (executable-find "php") "/usr/bin/php")
> 
> Would it not be more portable to just set the executable path to "php"
> and then let a binary named "php" be located both locally and remotely?

Does it help to use this instead:

  (defcustom php-ts-mode-php-executable
     (or (executable-find "php" t) "/usr/bin/php")




This bug report was last modified 51 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.