From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <871ru49mlt.fsf@nicolasgoaziou.fr> References: <87eezelxbq.fsf@gmail.com> <87eezdv7h2.fsf@alphapapa.net> <87v9so8b0v.fsf@gmail.com> <87y2wwr6ub.fsf@nicolasgoaziou.fr> <87tv7ksil2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40597) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iX0ui-00018o-Pi for emacs-orgmode@gnu.org; Tue, 19 Nov 2019 05:39:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iX0uh-0001t2-Ci for emacs-orgmode@gnu.org; Tue, 19 Nov 2019 05:39:16 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:37255) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iX0uh-0001mp-6q for emacs-orgmode@gnu.org; Tue, 19 Nov 2019 05:39:15 -0500 In-Reply-To: <87tv7ksil2.fsf@gmail.com> (Sebastian Miele's message of "Sun, 03 Nov 2019 22:25:45 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Sebastian Miele Cc: emacs-orgmode@gnu.org Hello, Sebastian Miele 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