Hi Bastien,

Bastien <b...@gnu.org> writes:
>
> Sebastian Miele <sebastian.mi...@gmail.com> writes:
>
> > * lisp/org-src.el (org-src--contents-for-write-back): Use the
> > potentially buffer-local value of `org-edit-src-content-indentation'
> > from the source buffer instead of that from the editing buffer.
>
> I'm not sure about I see why this patch would be useful.
>
> IIUC, in case `org-edit-src-content-indentation' is set in the src
> block buffer itself, you want Org to honor its value _there_ instead
> of the value this variable has in the org buffer (containing the src
> block)?

I am quite certain, that the content indentation conceptually and
technically belongs to the buffer containing the src block. Except for
src blocks containing org I see no point at all for setting a content
indentation in an edit buffer for the block. There just is no meaning of
an org src content indentation in e.g. an Elisp buffer.

And for an src buffer containing org the meaning would be the content
intentation for the org in the block, and not for the org containing the
block.

> I find it difficult to see a compelling use case, please let me know
> if I don't understand correctly.

Nicolas already accepted the patch. Currently it is included as commit
3649d95b in the history of master. Before accepting the patch, he too
asked for a use case. Please see

https://lists.gnu.org/archive/html/emacs-orgmode/2019-11/msg00052.html

for the answer.

Best wishes
Sebastian

Reply via email to