File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1010,6 +1010,7 @@ this ^ lineup"
1010
1010
(cons " PHP" (c-lang-const c-mode-menu php)))
1011
1011
1012
1012
(defvar-local php-mode--delayed-set-style nil )
1013
+ (defvar-local php-style-delete-trailing-whitespace nil )
1013
1014
1014
1015
(defun php-set-style (stylename &optional dont-override )
1015
1016
" Set the current `php-mode' buffer to use the style STYLENAME.
@@ -1064,7 +1065,8 @@ After setting the stylevars run hooks according to STYLENAME
1064
1065
(when php-mode--delayed-set-style
1065
1066
(let ((coding-style (or (and (boundp 'php-project-coding-style ) php-project-coding-style)
1066
1067
php-mode-coding-style)))
1067
- (prog1 (php-set-style (symbol-name coding-style))
1068
+ (prog1 (when coding-style
1069
+ (php-set-style (symbol-name coding-style)))
1068
1070
(remove-hook 'hack-local-variables-hook #'php-mode-set-style-delay )))))
1069
1071
1070
1072
(defvar php-mode-syntax-table
You can’t perform that action at this time.
0 commit comments