-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
org-fold-core: Do not override default fontification
* lisp/org-fold-core.el: Remove the code overriding `font-lock-default-fontify-region'. Emacs itself is skipping fontification of invisible text and doing it more efficiently. The org-fold fontification overrides are redundant, except when some poorly written third-party code is forcing fontification inside folded regions. However, Org does not need to entertain poorly written third party code, especially when the required supporting code is reducing font-lock performance and is complicating the maintenance. (org-fold-core--specs): (org-fold-core-add-folding-spec): Remove `:font-lock-skip' spec. (org-fold-core-initialize): (org-fold-core--fontifying): (org-fold-core-region): (org-fold-core--force-fontification): (org-fold-core-fontify-region): Remove custom fontification. * lisp/org-fold.el (org-fold-initialize): Remove `:font-lock-skip' spec. * lisp/org-macs.el (org-fold-core--force-fontification): (org-with-forced-fontification): (org-buffer-substring-fontified): (org-looking-at-fontified): Remove org-fold's font-lock logic.
- Loading branch information
Showing
3 changed files
with
14 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters