Skip to content

Commit 4bdd112

Browse files
committed
Do not use php-mode-enable-backup-style-variables in initialize
During initialization the variable backup had to be invalidated. Because of that, the default indentation style was adversely affected, so it will be fixed.
1 parent cdd2fc9 commit 4bdd112

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: php-mode.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,8 @@ After setting the stylevars run hooks according to STYLENAME
12641264
(setq php-mode--delayed-set-style t)
12651265
(when (fboundp 'advice-add)
12661266
(advice-add #'c-set-style :after #'php-mode--disable-delay-set-style '(local))))
1267-
(php-set-style (symbol-name php-mode-coding-style)))
1267+
(let ((php-mode-enable-backup-style-variables nil))
1268+
(php-set-style (symbol-name php-mode-coding-style))))
12681269

12691270
(when (or php-mode-force-pear
12701271
(and (stringp buffer-file-name)

0 commit comments

Comments
 (0)