Do you think it is now a reasonable implementation? Would it be a suitable tiny change to `org-mode'?
Regards, Federico > Thanks for the suggestion. Please find attached the improved patch. > > Regards, > Federico > > > On Wed, Jul 30, 2014 at 10:25 PM, Nicolas Goaziou > <m...@nicolasgoaziou.fr> wrote: >> Hello, >> >> Federico Beffa <be...@ieee.org> 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