From b09d6b58372852614a788192e619a24692cbeba4 Mon Sep 17 00:00:00 2001 From: Alex Figl-Brick Date: Thu, 20 Jun 2024 15:23:33 +0900 Subject: [PATCH] Make php-function-call inherit font-lock-function-call-face --- CHANGELOG.md | 3 +++ lisp/php-face.el | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ec3ec28..06d46190 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ All notable changes of the PHP Mode 1.19.1 release series are documented in this * Remove `$` from face names for interoperability with treesit ([#780], [emacs-php/php-ts-mode#68]) * `php-$this` → `php-this` * `php-$this-sigil` → `php-this-sigil` + * Make `php-function-call` inherit `font-lock-function-call-face` on Emacs 29.1 and above ([#782], thanks [@bricka]!) ### Removed @@ -32,6 +33,8 @@ All notable changes of the PHP Mode 1.19.1 release series are documented in this [#776]: https://github.com/emacs-php/php-mode/discussions/776 [#777]: https://github.com/emacs-php/php-mode/pull/777 [#780]: https://github.com/emacs-php/php-mode/issues/780 +[#782]: https://github.com/emacs-php/php-mode/issues/782 +[@bricka]: https://github.com/bricka [emacs-php/php-ts-mode#68]: https://github.com/emacs-php/php-ts-mode/pull/68 [PEAR Coding Standards]: https://pear.php.net/manual/en/standards.php diff --git a/lisp/php-face.el b/lisp/php-face.el index d5ac817b..34c51b5c 100644 --- a/lisp/php-face.el +++ b/lisp/php-face.el @@ -55,7 +55,8 @@ :group 'php-faces :tag "PHP Function Name") -(defface php-function-call '((t ())) +(defface php-function-call `((t ,(when (eval-when-compile (get 'font-lock-function-call-face 'face-defface-spec)) + '(:inherit font-lock-function-call-face)))) "PHP Mode face used to highlight function names in calles." :group 'php-faces :tag "PHP Function Call")