emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 39005dc098: org-fold: Do not fold text inserted rig


From: ELPA Syncer
Subject: [elpa] externals/org 39005dc098: org-fold: Do not fold text inserted right after outline fold
Date: Tue, 19 Jul 2022 09:57:42 -0400 (EDT)

branch: externals/org
commit 39005dc098e5cd9dab76357e3a1aaa541f8304a1
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    org-fold: Do not fold text inserted right after outline fold
    
    * lisp/org-fold.el (org-fold-initialize): Do not extend the fold when
    text is inserted right after it.  This resembles folding overlay
    behavior used in previous Org versions and in the 'overlays
    `org-fold-core-style'.
    
    Fixes https://orgmode.org/list/871quprrra.fsf@gmail.com
---
 lisp/org-fold.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/org-fold.el b/lisp/org-fold.el
index 6ff21dfc79..5039bb7440 100644
--- a/lisp/org-fold.el
+++ b/lisp/org-fold.el
@@ -223,9 +223,11 @@ smart            Make point visible, and do 
insertion/deletion if it is
       (:isearch-open . t)
       ;; This is needed to make sure that inserting a
       ;; new planning line in folded heading is not
-      ;; revealed.
+      ;; revealed.  Also, the below combination of :font-sticky and
+      ;; :real-sticky conforms to the overlay properties in outline.el
+      ;; and the older Org versions as in `outline-flag-region'.
       (:front-sticky . t)
-      (:rear-sticky . t)
+      (:rear-sticky . nil)
       (:font-lock-skip . t)
       (:alias . (headline heading outline inlinetask plain-list)))
      (org-fold-block



reply via email to

[Prev in Thread] Current Thread [Next in Thread]