emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Valentin Wüstholz" <wuestholz@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] org.el: Preserve indentation of manually indented lines in example blocks.
Date: Tue, 9 Aug 2011 07:42:46 +0200	[thread overview]
Message-ID: <CAPVO5rzXAvxAcxFx_f61KUyAnSRJDUU9YM+vZ7utYPyvqG2+=w@mail.gmail.com> (raw)
In-Reply-To: <87obzzmt2p.fsf@gmail.com>

Hi Nicolas,

thanks for the quick response.


On Tue, Aug 9, 2011 at 12:33 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> Valentin Wüstholz <wuestholz@gmail.com> 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

  reply	other threads:[~2011-08-09  5:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-08 19:48 [PATCH] org.el: Preserve indentation of manually indented lines in example blocks Valentin Wüstholz
2011-08-08 20:40 ` Nicolas Goaziou
2011-08-08 21:04   ` Valentin Wüstholz
2011-08-08 22:33     ` Nicolas Goaziou
2011-08-09  5:42       ` Valentin Wüstholz [this message]
2011-08-09  9:18         ` Nicolas Goaziou
2011-08-09 12:10           ` Valentin Wüstholz
2011-08-09 13:21             ` Nicolas Goaziou
2011-08-09 19:37               ` Valentin Wüstholz
2011-08-10  9:00                 ` Nicolas Goaziou
2011-08-16 17:21                   ` Bastien
2011-08-16 19:18                 ` Bastien
2011-08-16 21:33                   ` Valentin Wüstholz
2011-08-17  9:40                     ` Bastien
2011-08-17 18:32                       ` Valentin Wüstholz
2011-08-18 16:44                         ` Bastien
2011-08-26  6:45                           ` Valentin Wüstholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPVO5rzXAvxAcxFx_f61KUyAnSRJDUU9YM+vZ7utYPyvqG2+=w@mail.gmail.com' \
    --to=wuestholz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).