org-src: Fix indentation rampage when editing src blocks
commita33acf61917d8c72369297289031d8745e08e320
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 29 May 2015 07:55:56 +0000 (29 09:55 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 29 May 2015 07:55:56 +0000 (29 09:55 +0200)
tree42592c3c2db2bc6661fa7b8b4e8d3309897b4f4d
parent317886f53dd5d93b2ba89145866c64df77d4a93c
org-src: Fix indentation rampage when editing src blocks

* lisp/org-src.el (org-edit-src-code): Do not add indentation at every
  edit when `org-src-preserve-indentation' is non-nil.

Function taking care of indentation cannot check
`org-src--preserve-indentation' since the variable is buffer-local and
indentation happens in a temporary buffer.

Reported-by: Rainer M Krug <Rainer@krugs.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97927>
lisp/org-src.el