Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ this ^ lineup"
(cons "PHP" (c-lang-const c-mode-menu php)))

(defvar-local php-mode--delayed-set-style nil)
(defvar-local php-style-delete-trailing-whitespace nil)

(defun php-set-style (stylename &optional dont-override)
"Set the current `php-mode' buffer to use the style STYLENAME.
Expand Down Expand Up @@ -1064,7 +1065,8 @@ After setting the stylevars run hooks according to STYLENAME
(when php-mode--delayed-set-style
(let ((coding-style (or (and (boundp 'php-project-coding-style) php-project-coding-style)
php-mode-coding-style)))
(prog1 (php-set-style (symbol-name coding-style))
(prog1 (when coding-style
(php-set-style (symbol-name coding-style)))
(remove-hook 'hack-local-variables-hook #'php-mode-set-style-delay)))))

(defvar php-mode-syntax-table
Expand Down