branch: elpa/php-mode
commit dc13865a3b911f87676ff823ad7968a3d786cbc0
Author: USAMI Kenta <[email protected]>
Commit: USAMI Kenta <[email protected]>
Add guard to obsolete font-lock-* variables
---
lisp/php-mode.el | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/lisp/php-mode.el b/lisp/php-mode.el
index 38534b1368..bae38fc0fb 100644
--- a/lisp/php-mode.el
+++ b/lisp/php-mode.el
@@ -1185,13 +1185,19 @@ After setting the stylevars run hook
`php-mode-STYLENAME-hook'."
(setq-local comment-end "")
(setq-local page-delimiter php-mode-page-delimiter)
- (setq-local font-lock-string-face 'php-string)
- (setq-local font-lock-keyword-face 'php-keyword)
- (setq-local font-lock-builtin-face 'php-builtin)
- (setq-local c-preprocessor-face-name 'php-php-tag)
- (setq-local font-lock-function-name-face 'php-function-name)
- (setq-local font-lock-variable-name-face 'php-variable-name)
- (setq-local font-lock-constant-face 'php-constant)
+ (with-suppressed-warnings ((obsolete font-lock-string-face
+ font-lock-keyword-face
+ font-lock-builtin-face
+ font-lock-function-name-face
+ font-lock-variable-name-face
+ font-lock-constant-face))
+ (setq-local font-lock-string-face 'php-string)
+ (setq-local font-lock-keyword-face 'php-keyword)
+ (setq-local font-lock-builtin-face 'php-builtin)
+ (setq-local c-preprocessor-face-name 'php-php-tag)
+ (setq-local font-lock-function-name-face 'php-function-name)
+ (setq-local font-lock-variable-name-face 'php-variable-name)
+ (setq-local font-lock-constant-face 'php-constant))
(setq-local syntax-propertize-function #'php-syntax-propertize-function)
(add-hook 'syntax-propertize-extend-region-functions