From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: buffer local org-src-preserve-indentation not respected Date: Sat, 10 Dec 2016 00:22:36 +0100 Message-ID: <87d1h0elhf.fsf@nicolasgoaziou.fr> 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]:55756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFUUv-0006aE-UK for emacs-orgmode@gnu.org; Fri, 09 Dec 2016 18:22:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFUUs-0003js-Rj for emacs-orgmode@gnu.org; Fri, 09 Dec 2016 18:22:37 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:48930) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cFUUs-0003jg-Lx for emacs-orgmode@gnu.org; Fri, 09 Dec 2016 18:22:34 -0500 In-Reply-To: (David Dynerman's message of "Wed, 07 Dec 2016 15:58:52 -0800") 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: David Dynerman Cc: emacs-orgmode@gnu.org Hello, David Dynerman writes: > 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. Fixed (hopefully) this time. Thank you for the feedback. Regards, -- Nicolas Goaziou