From 9d304d371efe36c75c15e41fe03fe7dd746b10ca Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Tue, 9 May 2023 16:17:40 +0200 Subject: [PATCH] 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 57fe046a7..866af624e 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))