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