0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 19:37:52 +00:00

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
This commit is contained in:
Ihor Radchenko 2022-07-19 21:15:38 +08:00
parent 3b7523acd0
commit 39005dc098
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -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