From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Valentin_W=C3=BCstholz?= Subject: Re: [PATCH] org.el: Preserve indentation of manually indented lines in example blocks. Date: Mon, 8 Aug 2011 23:04:58 +0200 Message-ID: References: <87sjpbmyb1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqX0o-0001N6-GS for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 17:05:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqX0n-0005Dz-Ec for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 17:05:26 -0400 Received: from mail-iy0-f175.google.com ([209.85.210.175]:51522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqX0n-0005Dr-5a for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 17:05:25 -0400 Received: by iyn15 with SMTP id 15so7358434iyn.6 for ; Mon, 08 Aug 2011 14:05:24 -0700 (PDT) In-Reply-To: <87sjpbmyb1.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode Hi Nicolas. On Mon, Aug 8, 2011 at 10:40 PM, Nicolas Goaziou wro= te: > Hello, > > Valentin W=C3=BCstholz writes: > >> lines in example blocks are currently indented like the surrounding >> begin and end delimiters. =C2=A8This works fine unless, you want to ind= ent >> some lines manually; > > You may use colons instead. They are meant for this task. I.e.: > > : some text > : ^ Colons are great for short snippets. However, blocks are far more convenient for longer passages. >> in this case, auto-indenting the buffer reverts the manual >> indentation. This patch should prevent this from happening. > > I don't think we should prevent that as it would be more hassle to cope > with the new behaviour than doing it with colons. I don't think that the behaviour is fundamentally different. Blocks that were indented using the old behaviour will still be indented in the same way. The new behaviour is mainly more flexible. What potential hassle were you thinking of? Best regards, Valentin