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: Sebastian Miele
Subject: Re: [PATCH] Respect buffer-local value of `org-edit-src-content-indentation'
Date: Wed, 20 Nov 2019 06:12:46 +0000
User-agent: mu4e 1.3.5; emacs 26.3

Hi Nicolas,

Nicolas Goaziou <address@hidden> writes:

> 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?

That's perfectly fine with me. An updated patch is attached.

Best wishes
Sebastian

Attachment: 0001-Respect-buffer-local-value-of-org-edit-src-content-i.patch
Description: Text document


reply via email to

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