From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Miele Subject: Re: [PATCH] Respect buffer-local value of `org-edit-src-content-indentation' Date: Sun, 03 Nov 2019 22:25:45 +0000 Message-ID: <87tv7ksil2.fsf@gmail.com> References: <87eezelxbq.fsf@gmail.com> <87eezdv7h2.fsf@alphapapa.net> <87v9so8b0v.fsf@gmail.com> <87y2wwr6ub.fsf@nicolasgoaziou.fr> Reply-To: sebastian.miele@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:32843) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iROJj-0004r1-Sw for emacs-orgmode@gnu.org; Sun, 03 Nov 2019 17:25:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iROJi-0002jy-SY for emacs-orgmode@gnu.org; Sun, 03 Nov 2019 17:25:51 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:40101) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iROJi-0002jR-Kb for emacs-orgmode@gnu.org; Sun, 03 Nov 2019 17:25:50 -0500 Received: by mail-wr1-x442.google.com with SMTP id o28so14938587wro.7 for ; Sun, 03 Nov 2019 14:25:50 -0800 (PST) In-reply-to: <87y2wwr6ub.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi Nicolas, Nicolas Goaziou writes: > Sebastian Miele writes: > >> Subject: [PATCH] Respect buffer-local value of >> `org-edit-src-content-indentation' >> >> * 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. > > Thank you. > > Would you mind explaining your use case? 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. Best wishes Sebastian