branch: externals/org
commit 9d304d371efe36c75c15e41fe03fe7dd746b10ca
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    org-indent-line: Remove unnecessary call to `org-element-at-point'
    
    * lisp/org.el (org-indent-line): Do not re-calculate already known
    element.
---
 lisp/org.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 57fe046a74..866af624e4 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19068,8 +19068,7 @@ Also align node properties according to 
`org-property-format'."
              ;; signals org-src--edit-element to preserve the indentation on 
exit
              (when (and (looking-at-p "^[[:space:]]*$")
                         (not org-src-preserve-indentation))
-               (let ((element (org-element-at-point))
-                     block-content-ind some-ind)
+               (let (block-content-ind some-ind)
                  (org-with-point-at (org-element-property :begin element)
                    (setq block-content-ind (+ (org-current-text-indentation)
                                               
org-edit-src-content-indentation))

Reply via email to