emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: David Dynerman <emperordali@block-party.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: buffer local org-src-preserve-indentation not respected
Date: Sat, 10 Dec 2016 00:22:36 +0100	[thread overview]
Message-ID: <87d1h0elhf.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m2a8c7qojn.fsf@block-party.net> (David Dynerman's message of "Wed, 07 Dec 2016 15:58:52 -0800")

Hello,

David Dynerman <emperordali@block-party.net> 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

  reply	other threads:[~2016-12-09 23:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-02 21:59 buffer local org-src-preserve-indentation not respected David Dynerman
2016-12-03 22:58 ` Nicolas Goaziou
2016-12-07 23:58   ` David Dynerman
2016-12-09 23:22     ` Nicolas Goaziou [this message]
2016-12-11 18:37       ` David Dynerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1h0elhf.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=emperordali@block-party.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).