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: Mon, 8 Aug 2011 23:04:58 +0200	[thread overview]
Message-ID: <CAPVO5ryCuU74fy3_x4-FShnnuYFBQ3X7K5Es9kywmz+wEv5A=Q@mail.gmail.com> (raw)
In-Reply-To: <87sjpbmyb1.fsf@gmail.com>

Hi Nicolas.


 On Mon, Aug 8, 2011 at 10:40 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
 > Hello,
 >
 > Valentin Wüstholz <wuestholz@gmail.com> writes:
 >
 >> lines in example blocks are currently indented like the surrounding
 >> begin and end delimiters. ¨This works fine unless, you want to indent
 >> 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

  reply	other threads:[~2011-08-08 21:05 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 [this message]
2011-08-08 22:33     ` Nicolas Goaziou
2011-08-09  5:42       ` Valentin Wüstholz
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='CAPVO5ryCuU74fy3_x4-FShnnuYFBQ3X7K5Es9kywmz+wEv5A=Q@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).