* 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)
(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)