Hello, Federico Beffa <[email protected]> writes:
> + (save-excursion
> + (org-mark-element)
> + (org-indent-region (point) (mark))))
The function shouldn't set the mark. The following should be enough:
(let ((element (org-element-at-point)))
(when element
(org-indent-region (org-element-property :begin element)
(org-element-property :end element))))
Regards,
--
Nicolas Goaziou
