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
0001-org.el-add-function-to-indent-environment-inserted-b.patch
Description: Binary data