Thanks for the suggestion. Please find attached the improved patch. Regards, Federico On Wed, Jul 30, 2014 at 10:25 PM, Nicolas Goaziou wrote: > Hello, > > Federico Beffa 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