Skip to content

Commit 85f52b2

Browse files
authored
Merge pull request #422 from zonuexe/fix/setq-local
Use set and make-local-variable instead setq-local
2 parents 27d6359 + efadefd commit 85f52b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ After setting the stylevars run hooks according to STYLENAME
11971197
(modify-syntax-entry ?\n "> b" php-mode-syntax-table)
11981198
(modify-syntax-entry ?$ "'" php-mode-syntax-table)
11991199

1200-
(setq-local syntax-propertize-function #'php-syntax-propertize-function)
1200+
(set (make-local-variable 'syntax-propertize-function) #'php-syntax-propertize-function)
12011201
(add-to-list (make-local-variable 'syntax-propertize-extend-region-functions)
12021202
#'php-syntax-propertize-extend-region)
12031203

0 commit comments

Comments
 (0)