From be9280f68b239a1084e8bc527404060dba9abfb9 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Wed, 15 Feb 2023 18:26:37 +0300 Subject: [PATCH] org-cycle-set-visibility-according-to-property: Fix folded newline before * lisp/org-cycle.el (org-cycle-set-visibility-according-to-property): Make sure that folded newline before heading is revealed. Reported-by: Daniel Hubmann Link: https://orgmode.org/list/CAOX7s=3NTjpvnFDfwBdozLbLCWANLbCCyCbQNOnNsnMqqFEF3g@mail.gmail.com --- lisp/org-cycle.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/org-cycle.el b/lisp/org-cycle.el index 828c84cd0..90fc95f41 100644 --- a/lisp/org-cycle.el +++ b/lisp/org-cycle.el @@ -648,6 +648,9 @@ With a numeric prefix, show all headlines up to that level." (org-fold-show-hidden-entry) (org-fold-show-children)) ("content" + ;; Newline before heading will be outside the + ;; narrowing. Make sure that it is revealed. + (org-fold-heading nil) (save-excursion (save-restriction (org-narrow-to-subtree)