[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern 44bb8bbde4 1/3: Ensure that org-modern doesn
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern 44bb8bbde4 1/3: Ensure that org-modern doesn't change modification status (Fix #95) |
Date: |
Thu, 15 Sep 2022 15:57:54 -0400 (EDT) |
branch: externals/org-modern
commit 44bb8bbde451b498b7b7c264e4e2e6e7451b6324
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Ensure that org-modern doesn't change modification status (Fix #95)
---
org-modern.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/org-modern.el b/org-modern.el
index 40faa6f6cf..b7826e9e08 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -705,10 +705,11 @@ the font.")
(font-lock-add-keywords nil org-font-lock-keywords)
(setq-local font-lock-unfontify-region-function #'org-unfontify-region)
(remove-hook 'pre-redisplay-functions #'org-modern--pre-redisplay 'local)))
- (save-restriction
- (widen)
- (org-modern--unfontify (point-min) (point-max))
- (font-lock-flush)))
+ (with-silent-modifications
+ (save-restriction
+ (widen)
+ (org-modern--unfontify (point-min) (point-max))
+ (font-lock-flush))))
(defun org-modern--unfontify (beg end &optional _loud)
"Unfontify prettified elements between BEG and END."