From d5b04d88035d8a5d74f2c3137bac7f99c61b1e72 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Wed, 22 May 2019 21:08:43 +0900 Subject: [PATCH] Reduce the range of buffer propertization by variables --- php-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php-mode.el b/php-mode.el index 7e8e0965..eda1426c 100644 --- a/php-mode.el +++ b/php-mode.el @@ -1089,7 +1089,10 @@ After setting the stylevars run hooks according to STYLENAME (when (>= emacs-major-version 25) (with-silent-modifications (save-excursion - (php-syntax-propertize-function (point-min) (point-max)))))) + (let* ((start (point-min)) + (end (min (point-max) + (+ start syntax-propertize-chunk-size)))) + (php-syntax-propertize-function start end)))))) (declare-function semantic-create-imenu-index "semantic/imenu" (&optional stream))