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: Tue, 9 Aug 2011 07:42:46 +0200 Message-ID: References: <87sjpbmyb1.fsf@gmail.com> <87obzzmt2p.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]:51406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqf5n-0000gU-UL for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 01:43:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qqf5m-0000OS-Vx for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 01:43:07 -0400 Received: from mail-iy0-f175.google.com ([209.85.210.175]:55811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqf5m-0000OO-Pm for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 01:43:06 -0400 Received: by iyn15 with SMTP id 15so7982380iyn.6 for ; Mon, 08 Aug 2011 22:43:06 -0700 (PDT) In-Reply-To: <87obzzmt2p.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, thanks for the quick response. On Tue, Aug 9, 2011 at 12:33 AM, Nicolas Goaziou wrot= e: > Valentin W=C3=BCstholz writes: > >> Colons are great for short snippets. However, blocks are far more >> convenient for longer passages. > > That's certainly true, but I fail to see an use case for such long > passages. May I know what you do have in mind? Sure. At least four use cases come to my mind for this: (a) literal console output, (b) blocks of pseudo code (can't really use SRC blocks since there is no actual language for this), (c) blocks of source code in experimental or little known programming languages (ditto), and (d) sketches of mathematical proofs or computations where you don't want to mess with LaTeX typesetting (yet). More generally, every long passage where you would like indentation to be treated literally (not only by an exporter, but also by the automatic indenter). >> What potential hassle were you thinking of? > > Being left with no more literal markup automatically indented. It's not > that your idea is bad, but there could be users appreciating the current > feature. I certainly thought about existing users, which is why by default lines are is still indented like before. If you care about automatic indentation, your example blocks are already indented like the delimiters and the new behaviour keeps it just like that. If you previously chose to indent you blocks differently, the new behaviour will respect that decision by not messing with your indentation. > Perhaps this could be applied to verse blocks instead. As far as I recall verse blocks are treated somewhat differently from example blocks by the exporter (e.g. verse vs verbatim in LaTeX). Initially, I thought about allowing no specific language in SRC blocks. However, this seems somewhat counterintuitive to me. Best regards, Valentin