From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch] better(?) indention for cdlatex-environment Date: Fri, 20 Feb 2015 00:11:08 +0100 Message-ID: <87vbixa44z.fsf@gmx.us> References: <87386e0zuy.fsf@gmx.us> <87wq3pwg29.fsf@nicolasgoaziou.fr> <87lhk48z9x.fsf@gmx.us> <87fvacw2jv.fsf@nicolasgoaziou.fr> <87mw4kyq2e.fsf@gmx.us> <87fva9tqdj.fsf@nicolasgoaziou.fr> <873869h0cd.fsf@gmx.us> <87twypgwt5.fsf@gmx.us> <87pp9cnq9w.fsf@nicolasgoaziou.fr> <874mqoc9zf.fsf@gmx.us> <87lhjzo611.fsf@nicolasgoaziou.fr> <87wq3hgyie.fsf@gmx.us> <87egpox6o3.fsf@nicolasgoaziou.fr> <877fvg44nw.fsf@gmx.us> <87mw4cm4sq.fsf@nicolasgoaziou.fr> <87r3tmsqbe.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOaFX-0004Fk-Es for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 18:11:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOaFU-0007zC-4z for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 18:11:15 -0500 Received: from mout.gmx.net ([212.227.15.15]:61582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOaFT-0007yv-Ql for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 18:11:12 -0500 Received: from W530 ([109.201.154.153]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MGS9o-1YKAPe2DKq-00DEFQ for ; Fri, 20 Feb 2015 00:11:10 +0100 In-Reply-To: <87r3tmsqbe.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 19 Feb 2015 01:22:29 +0100") 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 Rasmus writes: >> This is exactly what we want: indent (non empty) lines starting in >> [BEG ; END[. Or am I missing something? > > OK, the missing key is org-indent-line-to. It works better in this case > and I can use end. >> Another option: when ENV is inserted the first time, store (e.g., in N) >> how many (forward-line -1) are needed to go back to BEG. At the end of >> the process, move to BEG then (forward-line n). I assume point is always >> left on an empty lines. If it is not the case, you also need to store >> current column, relatively to end of line. > > OK it now does this. Oh, I pushed this by accident (damn). Should I revert it? http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=3D14a9510ce1b5535906ceb= 6a93238e132964fd45f =E2=80=94Rasmus --=20 With monopolies the cake is a lie!