emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 31/35] org-fold-core: Fix fontification inside folded regions


From: Ihor Radchenko
Subject: [PATCH 31/35] org-fold-core: Fix fontification inside folded regions
Date: Sat, 29 Jan 2022 19:38:23 +0800

* lisp/org-fold-core.el (org-fold-core-initialize): Declare
`org-fold-core-fontified' text property for font-lock.
(org-fold-core--force-fontification): New variable controlling forced
fontification inside folded regions.
(org-fold-core-fontify-region): Fix cases when BEG is inside folded
region.  Respect `org-fold-core--force-fontification'.
* lisp/org-macs.el (org-with-forced-fontification): New macro.
(org-buffer-substring-fontified):
(org-looking-at-fontified): Do not rely on jit-lock.  Use
`org-fold-core-fontified' text property to determine whether text is
already fontified.
---
 lisp/org-fold-core.el | 69 +++++++++++++++++++++++++------------------
 lisp/org-macs.el      | 31 +++++++++++++++++++
 2 files changed, 72 insertions(+), 28 deletions(-)

Attachment: 0031-org-fold-core-Fix-fontification-inside-folded-region.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]