Skip to content

Commit 97b9178

Browse files
authored
Merge pull request #452 from zonuexe/fix/set-style-no-backup-vars
Do not use php-mode-enable-backup-style-variables in initialize
2 parents 2c83fbe + 4bdd112 commit 97b9178

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)