[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(-)
0031-org-fold-core-Fix-fontification-inside-folded-region.patch
Description: Text Data
- [PATCH 21/35] org-manual: Update to new org-fold function names, (continued)
- [PATCH 21/35] org-manual: Update to new org-fold function names, Ihor Radchenko, 2022/01/29
- [PATCH 22/35] ORG-NEWS: Add list of changes, Ihor Radchenko, 2022/01/29
- [PATCH 23/35] Backport contributed commits, Ihor Radchenko, 2022/01/29
- [PATCH 24/35] Fix typo: delete-duplicates → delete-dups, Ihor Radchenko, 2022/01/29
- [PATCH 25/35] Fix bug in org-get-heading, Ihor Radchenko, 2022/01/29
- [PATCH 26/35] Rename remaining org-force-cycle-archived → org-cycle-force-archived, Ihor Radchenko, 2022/01/29
- [PATCH 28/35] org-string-width: Handle undefined behaviour in older Emacs, Ihor Radchenko, 2022/01/29
- [PATCH 29/35] org-string-width: Work around `window-pixel-width' bug in old Emacs, Ihor Radchenko, 2022/01/29
- [PATCH 27/35] Fix org-fold--hide-drawers--overlays, Ihor Radchenko, 2022/01/29
- [PATCH 30/35] org-fold-show-set-visibility: Fix edge case when folded region is at BOB, Ihor Radchenko, 2022/01/29
- [PATCH 31/35] org-fold-core: Fix fontification inside folded regions,
Ihor Radchenko <=
- [PATCH 32/35] test-org/string-width: Add tests for strings with prefix properties, Ihor Radchenko, 2022/01/29
- [PATCH 35/35] test-ol/org-toggle-link-display: Fix compatibility with old Emacs, Ihor Radchenko, 2022/01/29
- [PATCH 33/35] org--string-from-props: Fix handling folds in Emacs <28, Ihor Radchenko, 2022/01/29
- [PATCH 34/35] org-link-make-string: Throw error when both LINK and DESCRIPTION are empty, Ihor Radchenko, 2022/01/29