From da271f828f6df1c2313dd42cada6a1bac0c4b7db Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Fri, 24 May 2024 21:52:34 +0200 Subject: [PATCH] bug-reference: signal fontified bounds back to jit-lock (bug#70796) * lisp/progmodes/bug-reference.el (bug-reference-fontify): Signal fontified bounds back to jit-lock in order to allow for redisplay optimizations (bug#70796). (cherry picked from commit 59d7730a46a4a51a2c7e3c800a1d60f92a2322b6) --- lisp/progmodes/bug-reference.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/bug-reference.el b/lisp/progmodes/bug-reference.el index 46163774e47..569de5a2b91 100644 --- a/lisp/progmodes/bug-reference.el +++ b/lisp/progmodes/bug-reference.el @@ -196,7 +196,10 @@ subexpression 10." (funcall bug-reference-url-format))))))) ;; Delete remaining but unused overlays. (dolist (ov overlays) - (delete-overlay ov))))) + (delete-overlay ov))) + ;; Signal the bounds we actually fontified to jit-lock to allow for + ;; optimizations (bug#70796). + `(jit-lock-bounds ,beg-line . ,end-line))) ;; Taken from button.el. (defun bug-reference-push-button (&optional pos _use-mouse-action) -- 2.39.5