Skip to content

Commit d5b04d8

Browse files
committed
Reduce the range of buffer propertization by variables
1 parent bec22bf commit d5b04d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

php-mode.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,10 @@ After setting the stylevars run hooks according to STYLENAME
10891089
(when (>= emacs-major-version 25)
10901090
(with-silent-modifications
10911091
(save-excursion
1092-
(php-syntax-propertize-function (point-min) (point-max))))))
1092+
(let* ((start (point-min))
1093+
(end (min (point-max)
1094+
(+ start syntax-propertize-chunk-size))))
1095+
(php-syntax-propertize-function start end))))))
10931096

10941097
(declare-function semantic-create-imenu-index "semantic/imenu" (&optional stream))
10951098

0 commit comments

Comments
 (0)