From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Dynerman Subject: Re: buffer local org-src-preserve-indentation not respected Date: Wed, 07 Dec 2016 15:58:52 -0800 Message-ID: References: <87shq4bowh.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEm7T-0005jj-UT for emacs-orgmode@gnu.org; Wed, 07 Dec 2016 18:59:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEm7Q-0005gS-UM for emacs-orgmode@gnu.org; Wed, 07 Dec 2016 18:59:28 -0500 Received: from poitras.block-party.net ([107.170.248.157]:57085) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cEm7Q-0005fp-Oh for emacs-orgmode@gnu.org; Wed, 07 Dec 2016 18:59:24 -0500 In-Reply-To: <87shq4bowh.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 Dear Nicolas, Nicolas Goaziou writes: > Fixed. Thank you. Thank you very much. I just tried, and I still encounter this buf on the current git code. Reproduction is the same as before: #+BEGIN_SRC python :tangle preserve-indent.py class Foo: bar = 5 #+END_SRC Here is some interstitial text! #+BEGIN_SRC python :tangle preserve-indent.py def __init__(self): self.bar = 7 #+END_SRC If I globally set org-src-preserve-indentation to t, then tangle, the output file has the correct specified indentation with the second block. If I make org-src-preserve-indentation buffer local and set it to t, then the second block is tanlged without any leading indentation. Perhaps the tangling code doesn't see the buffer local setting of org-src-preserve-indentation from the buffer being tangled? Thank you very much for all your hard work, David