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

From: Eli Zaretskii <[email-masked]>
Date: Thu, 13 Mar 2025 18:47:42 +0200

> From: Vincenzo Pupillo <[email-masked]>
> Cc: [email-masked], [email-masked]
> Date: Thu, 13 Mar 2025 17:28:41 +0100
> 
> In data giovedì 13 marzo 2025 15:25:57 Ora standard dell’Europa centrale, Eli 
> Zaretskii ha scritto:
> > How about the following solution:
> > 
> >  . we replace references to php-ts-mode-php-executable with a call to
> >    a function
> >  . that function will do something like
> > 
> >    (let ((php-prog (if (file-remote-p default-directory)
> >                        (executable-find "php" t)
> > 		     php-ts-mode-php-executable)))
> >      php-prog)
> > 
> > WDYT?
> Yes, that's fine. Maybe we should also rename 'php-ts-mode-php-executable', 
> something like 'php-ts-mode-php-default-executable'. It seems to me that it 
> might not be clear that this value would not be used if the file was remote.

Yes, good idea.  Would you like to post a patch to that effect?