From fb61e83f2af2ec1acde9cd657d82cbdd8e2e76ff Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Fri, 15 Mar 2024 00:20:02 +0300 Subject: [PATCH] org-insert-property-drawer: Fix incorrect fold type * lisp/org.el (org-insert-property-drawer): When folding style is overlays, do not use outline folds to fold the property drawer. Reported-by: Bruno Cardoso Link: https://orgmode.org/list/87wmq5btzn.fsf@gmail.com --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 508afd13a..2e91dd508 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13358,7 +13358,7 @@ drawer is immediately hidden." (inhibit-read-only t)) (unless (bobp) (insert "\n")) (insert ":PROPERTIES:\n:END:") - (org-fold-region (line-end-position 0) (point) t (if (eq org-fold-core-style 'text-properties) 'drawer 'outline)) + (org-fold-region (line-end-position 0) (point) t 'drawer) (when (or (eobp) (= begin (point-min))) (insert "\n")) (org-indent-region begin (point))))))