]> git.eshelyaron.com Git - emacs.git/commit
PHP should be in the PATH, either locally or remotely. (bug#76242).
authorVincenzo Pupillo <v.pupillo@gmail.com>
Fri, 14 Mar 2025 20:11:22 +0000 (21:11 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 31 Mar 2025 08:33:53 +0000 (10:33 +0200)
commite9cc65b19f1c492b87dec87330306d5a6e599e2e
tree3c241c42e745050fc06fdc08401c71e2d9ab6c32
parent920a2b784819f10337b5402ce575e294f8a4e1f2
PHP should be in the PATH, either locally or remotely. (bug#76242).

* lisp/progmodes/php-ts-mode.el
(php-ts-mode-php-default-executable): Renamed from
'php-ts-mode-php-executable'.
(php-ts-mode--executable): New function that returns the absolute
filename of the PHP executable, local or remote, based on
'default-directory'.
(php-ts-mode--anchor-prev-sibling): Replaced 'when-let' with
“when-let*.”
(php-ts-mode--indent-defun): Replaced 'when-let' with
'when-let*'.
(php-ts-mode-run-php-webserver): Use the new function
(php-ts-mode-php-default-executable).
(run-php): Use the new function (php-ts-mode-php-default-executable).

(cherry picked from commit 99ff59bd66cc07df40b14cb0a8acf22d440581e5)
lisp/progmodes/php-ts-mode.el