From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch] better(?) indention for cdlatex-environment Date: Tue, 10 Feb 2015 13:27:07 +0100 Message-ID: <87386ec5pg.fsf@gmx.us> References: <87386e0zuy.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL9uR-0005eY-Tx for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 07:27:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YL9uP-0007pQ-8M for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 07:27:19 -0500 Received: from plane.gmane.org ([80.91.229.3]:56136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL9uP-0007pE-0p for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 07:27:17 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YL9uM-0007Qq-JU for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 13:27:14 +0100 Received: from tsn109-201-154-147.dyn.nltelcom.net ([109.201.154.147]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2015 13:27:14 +0100 Received: from rasmus by tsn109-201-154-147.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2015 13:27:14 +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: > Hi, > > Cdlatex environment inserted via org-cdlatex-environment-indent are pretty > bad at getting the right indention. Consider: > > - concept :: a long description of concept | > > Where | is cursor. When I call org-cdlatex-environment-indent, I expect > > - concept :: a long description of concept > \begin{equation} > | > \end{equation} Actually, this doesn't work with a one-line description since (org-get-indent) is then zero there. I think a more complicated solution is necessary. Maybe org-indent-region could take an optional argument of previous indention, though that still doesn't solve the one-line description case... —Rasmus -- One thing that is clear: it's all down hill from here