From: Tassilo Horn Date: Fri, 24 May 2024 19:52:34 +0000 (+0200) Subject: bug-reference: signal fontified bounds back to jit-lock (bug#70796) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=da271f828f6df1c2313dd42cada6a1bac0c4b7db;p=emacs.git 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) --- 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)