From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org.el: Preserve indentation of manually indented lines in example blocks. Date: Tue, 09 Aug 2011 15:21:05 +0200 Message-ID: <87vcu6lnzy.fsf@gmail.com> References: <87sjpbmyb1.fsf@gmail.com> <87obzzmt2p.fsf@gmail.com> <878vr3lz8c.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]:41769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqmMw-0003jy-Mc for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 09:29:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqmMi-0005Ae-H6 for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 09:29:18 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:39986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqmMi-00057v-CV for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 09:29:04 -0400 Received: by wyi11 with SMTP id 11so429131wyi.0 for ; Tue, 09 Aug 2011 06:29:01 -0700 (PDT) In-Reply-To: ("Valentin =?utf-8?Q?W=C3=BCstholz=22's?= message of "Tue, 9 Aug 2011 14:10:51 +0200") 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: Valentin =?utf-8?Q?W=C3=BCstholz?= Cc: emacs-orgmode Valentin W=C3=BCstholz writes: > At least that's my understanding of what /literal/ examples should > give you. Besides, you don't need to fix each line separately: simply > removing the indentation and auto-indenting the block will get you the > desired results. Ah, true. I hadn't thought about that. I guess it's not that bad then. > I would love to hear how other people feel about this. Same here. I don't use such blocks very often after all. Meanwhile, could you please reformat a bit your patch (no more than 80 columns, no parents on their own line), add a commit message followed by TINYCHANGE (unless you have signed FSF papers already) and use git format-patch for the output? >> To sum it up, in the first case, you only loose the ability to indent >> the whole buffer in one go (which isn't as bad as it sounds, since you >> can achieve that differently). > > How else would you be able to achieve that? You may still indent regions without examples blocks, you can also indent automatically each line you're writing. I rarely indent globally buffers I wrote. > I might be wrong, but I believe that at least in LaTeX indentation in > verse blocks is not taken into account. This seems reasonable since > they are not typeset in a monospaced font. Actually indentation is partially taken into account. Some \hspace*{1cm} are added. On the other hand, HTML enforces indentation with the help of  . Regards, --=20 Nicolas Goaziou