Subject: Re: bug#76955: 30.1; php-ts-mode-php-executable default path may not match remote path

From: Morgan Willcock <[email-masked]>
Date: Wed, 12 Mar 2025 18:25:16 +0000

Eli Zaretskii <[email-masked]> writes:

> Does it help to use this instead:
>
>   (defcustom php-ts-mode-php-executable
>      (or (executable-find "php" t) "/usr/bin/php")

I don't think that would help.

If the package is loaded while default-directory is local the value
would be wrong on the remote system.

If the package is loaded while default-directory is remote the value
would be wrong on the local system.

Neither the local or remote path is "/usr/bin/php".

I was surprised that the default value was not "php".  Is there some
benefit in searching for the executable so early?

-- 
Morgan Willcock