emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [POLL] Setting `org-adapt-indentation' to nil by default?


From: Nicolas Goaziou
Subject: Re: [POLL] Setting `org-adapt-indentation' to nil by default?
Date: Sun, 02 May 2021 20:19:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hello,

Tom Gillespie <tgbugs@gmail.com> writes:

> Materializing the whitespace causes many potential issues with source
> blocks for languages that have significant whitespace, issues with
> #+begin_src and #+end_src having different levels of indentation
> (still an issue if you want a block in a plain list), 

This is inaccurate.

The following is a perfectly valid list.

--8<---------------cut here---------------start------------->8---
  1. foo

     #+begin_src emacs-lisp
(+ 1 1)
     #+end_src

  2. bar
--8<---------------cut here---------------end--------------->8---

Source blocks for languages that have significant whitespace should use
the -i flag.

> PS I have included some notes on the worg/dev/org-syntax.org
> file that I wrote while working on the formal grammar. I would
> qualify what I wrote slightly to state that users could in principle
> have leading whitespace before source blocks but that the behavior of
> org in such cases would be left unspecified in the not quite nasal
> demons sense, but that it might be better to have the behavior
> described below with a note that no attempt to deal with correctly
> preserving leading whitespace is required, user beware. A final
> aside: maybe plain lists could have the #+begin_ and #+end_
> lines indented to the level of the plain list but maybe not the body?

What makes you think this is not the case?

Regards,
-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]