From: Phil Sainty Date: Fri, 4 Jul 2025 06:30:49 +0000 (+1200) Subject: ; * lisp/progmodes/php-ts-mode.el: Docstring fixes X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7d9c849203f7dae98b099d327f9e5651a309736a;p=emacs.git ; * lisp/progmodes/php-ts-mode.el: Docstring fixes (php-ts-mode-alternative-php-program-name, php-ts-mode--executable): Improve documentation. (cherry picked from commit 1ea68b930c045596706534abb3b7fcbcbc7a5b6d) --- diff --git a/lisp/progmodes/php-ts-mode.el b/lisp/progmodes/php-ts-mode.el index 567f0bdce74..c30c42cb833 100644 --- a/lisp/progmodes/php-ts-mode.el +++ b/lisp/progmodes/php-ts-mode.el @@ -142,7 +142,7 @@ Works like `css--fontify-region'." (defvar-local php-ts-mode-alternative-php-program-name nil "An alternative to the usual `php' program name. -In non-nil, `php-ts-mode--executable' try to find this executable.") +If non-nil, `php-ts-mode--executable' looks for this instead of \"php\".") (defcustom php-ts-mode-php-config nil "The location of php.ini file. @@ -313,7 +313,7 @@ Calls REPORT-FN directly." "Return the absolute filename of the php executable. If the `default-directory' is remote, search on a remote host, otherwise it searches locally. If `php-ts-mode-alternative-php-program-name' is -non-zero, it searches for this program instead of the usual `php'. +non-nil, it searches for this program instead of the usual `php'. If the search fails, it returns `php-ts-mode-php-default-executable'." (or (executable-find (or php-ts-mode-alternative-php-program-name "php") t)