branch: externals/org
commit 928f2d7fb03e0932f3280af7a5087a564eaaf5e6
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    Revert "org-return: Do not insert inside folded region"
    
    This reverts commit a25d00d5dff6c162b1bb7542201c590052d267fa.
    
    Direct call to `org-fold-check-before-invisible-edit' is no longer
    necessary on main.  We use `org-fold-catch-invisible-edits-commands'.
---
 lisp/org.el | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 0c7fef0fa9..6abb2db958 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17950,8 +17950,6 @@ If INDENT is non-nil, call `newline-and-indent' with 
ARG to
 indent unconditionally; otherwise, call `newline' with ARG and
 INTERACTIVE, which can trigger indentation if
 `electric-indent-mode' is enabled."
-  (when interactive
-    (org-fold-check-before-invisible-edit 'insert))
   (if indent
       (org-newline-and-indent arg)
     (newline arg interactive)))

Reply via email to