branch: externals/org-modern
commit 905a601796d02283e94a603b6011a537ee7e6090
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    Use without-restriction
---
 org-modern.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/org-modern.el b/org-modern.el
index 0416a6e644..e253451f72 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -796,8 +796,7 @@ the font.")
     (remove-hook 'pre-redisplay-functions #'org-modern--pre-redisplay 'local)
     (remove-hook 'org-after-promote-entry-hook #'org-modern--unfontify-line 
'local)
     (remove-hook 'org-after-demote-entry-hook #'org-modern--unfontify-line 
'local)))
-  (save-restriction
-    (widen)
+  (without-restriction
     (with-silent-modifications
       (org-modern--unfontify (point-min) (point-max)))
     (font-lock-flush)))

Reply via email to