From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: left padding added each time a code block is edited Date: Fri, 08 Aug 2014 15:47:28 +0200 Message-ID: <878umzytxr.fsf@gmx.us> References: <87r40r9b42.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFkWP-0002LS-13 for emacs-orgmode@gnu.org; Fri, 08 Aug 2014 09:47:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFkWI-0007WD-NH for emacs-orgmode@gnu.org; Fri, 08 Aug 2014 09:47:52 -0400 Received: from plane.gmane.org ([80.91.229.3]:48529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFkWI-0007W1-Gm for emacs-orgmode@gnu.org; Fri, 08 Aug 2014 09:47:46 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XFkWH-0007I1-2c for emacs-orgmode@gnu.org; Fri, 08 Aug 2014 15:47:45 +0200 Received: from 109.201.152.5 ([109.201.152.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2014 15:47:45 +0200 Received: from rasmus by 109.201.152.5 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2014 15:47:45 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Noah, Noah Hoffman writes: > Noah Hoffman writes: > >> Each time I edit a code block using =C-c '= (org-edit-special) and >> then return to the org-mode buffer, two spaces are added to the left >> margin of the code. For example, >> >> #+BEGIN_SRC python >> print "hello" >> #+END_SRC >> >> becomes >> >> #+BEGIN_SRC python >> print "hello" >> #+END_SRC >> >> after one round-trip. This is particularly problematic for python code >> blocks since leading whitespace is meaningful. Have you experienced any bugs with respect to this? On my system Babel will even run this code correctly: #+BEGIN_SRC python if True: return( "hello!") #+END_SRC #+RESULTS: : hello! > 2. While this variable is very well documented, it isn't very > discoverable via apropos or the html manual (at least, I wasn't able > to discover it). Perhaps a reference can be added to this variable in > the docstring for org-edit-src-code? Patches are more than welcome! There's a guide on Worg: http://orgmode.org/worg/org-contribute.html Cheers, Rasmus -- A page of history is worth a volume of logic