branch: externals/org-modern commit 44bb8bbde451b498b7b7c264e4e2e6e7451b6324 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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."