org-format-latex: Add FIXME

* lisp/org.el (org-format-latex): Mark `overlay-recenter' call for
removal after Emacs 28 support is dropped.
This commit is contained in:
Ihor Radchenko 2023-08-05 16:14:25 +03:00
parent 0a5dd8cf68
commit 8dfd8c987c
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 2 additions and 0 deletions

View File

@ -15755,6 +15755,8 @@ Some of the options can be changed using the variable
(cnt 0) (cnt 0)
checkdir-flag) checkdir-flag)
(goto-char (or beg (point-min))) (goto-char (or beg (point-min)))
;; FIXME: `overlay-recenter' is not needed (and has no effect)
;; since Emacs 29.
;; Optimize overlay creation: (info "(elisp) Managing Overlays"). ;; Optimize overlay creation: (info "(elisp) Managing Overlays").
(when (and overlays (memq processing-type '(dvipng imagemagick))) (when (and overlays (memq processing-type '(dvipng imagemagick)))
(overlay-recenter (or end (point-max)))) (overlay-recenter (or end (point-max))))