From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: proposal for improved integration of cdlatex Date: Fri, 8 Aug 2014 18:23:26 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFmwz-0008AE-NB for emacs-orgmode@gnu.org; Fri, 08 Aug 2014 12:23:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFmwy-0004pb-7V for emacs-orgmode@gnu.org; Fri, 08 Aug 2014 12:23:29 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org, Nicolas Goaziou , Bastien 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 > 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