emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] Respect buffer-local value of `org-edit-src-content-indentat


From: Nicolas Goaziou
Subject: Re: [PATCH] Respect buffer-local value of `org-edit-src-content-indentation'
Date: Tue, 19 Nov 2019 11:39:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello,

Sebastian Miele <address@hidden> writes:

> The Org default of org-edit-src-content-indentation is 2. I like that
> value and leave it that way. Worg's root .dir-locals sets it to 0
> buffer-locally in at least many Worg's Org files. Hence, when I edit an
> src block in a Worg file, the value of org-edit-src-content-indentation
> in the edit buffer is 2. But the correct value in that case is 0.

Then I think we should do the same as what is done for, e.g.,
`org-src--preserve-indentation`, i.e. store the initial value from
`org-src--edit-element', and use it in
`org-src--contents-for-write-back'. 

WDYT?

Regards,

-- 
Nicolas Goaziou



reply via email to

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