Skip to content

Commit efadefd

Browse files
committed
Use set and make-local-variable instead setq-local
`setq-local` was added in Emacs 24.3. PHP Mode still keepscompatibility with Emacs 24.1, so we adopted redundant notation.
1 parent eb08986 commit efadefd

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)