From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Re: Babel blocks not indented Date: Fri, 10 May 2013 14:07:02 -0700 Message-ID: References: <87d2t24swa.fsf@free.fr> <878v3qsldc.fsf@gmail.com> <87wqra31ie.fsf@free.fr> <87fvxvh5md.fsf@adboyd.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c36b4267bc9404dc638c19 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UauWv-00006P-Bi for emacs-orgmode@gnu.org; Fri, 10 May 2013 17:07:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UauWt-0004tq-Vu for emacs-orgmode@gnu.org; Fri, 10 May 2013 17:07:05 -0400 Received: from mail-lb0-f180.google.com ([209.85.217.180]:44023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UauWt-0004te-Oc for emacs-orgmode@gnu.org; Fri, 10 May 2013 17:07:03 -0400 Received: by mail-lb0-f180.google.com with SMTP id v1so4667961lbd.11 for ; Fri, 10 May 2013 14:07:02 -0700 (PDT) In-Reply-To: <87fvxvh5md.fsf@adboyd.com> 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: "J. David Boyd" Cc: Emacs orgmode --001a11c36b4267bc9404dc638c19 Content-Type: text/plain; charset=ISO-8859-1 On Thu, May 9, 2013 at 8:32 PM, J. David Boyd wrote: > Julien Cubizolles writes: > > > Eric Schulte writes: > > > >> Julien Cubizolles writes: > >> > >>> I'm new to babel and I'm experiencing a strange problem. A > >>> src_block created with " >>> in. Here is an example: > >>> > >> > >> Try "TAB > > > That's what I was doing but it seems the problem lies with > > org-indent-mode and is also present with regular text. Apparently, > > disabling and re-enabling seems to fix it. I'll investigate further. > > > > Julien. > > I change my mode to whatever my src is in when I want indenting to work > properly, then change it back when I want to see it as an org file again. > > Dave > > > I've brought this up before, but I think there's value in SRC blocks /not/ being indented, and in fact, I would love it if there were a way to make the contents of the SRC blocks /not/ be indented (as opposed to the default 2 space offset). Whitespace often matters, particularly when working with Python, and every now and then I find myself having to manually delete the extra spacing when pasting code into the Python interpreter. Other times I want to paste code snippets from SRC blocks into source files -- again, indentation gets in the way. I agree that it's aesthetically appealing, but my workflow would be easier without it. --Leo --001a11c36b4267bc9404dc638c19 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

= On Thu, May 9, 2013 at 8:32 PM, J. David Boyd <david@adboyd.com> wrote:
Juli= en Cubizolles <j.cubizolles@free= .fr> writes:

> Eric Schulte <schulte.eri= c@gmail.com> writes:
>
>> Julien Cubizolles <j.cu= bizolles@free.fr> writes:
>>
>>> I'm new to babel and I'm experiencing a strange proble= m. A
>>> src_block created with "<s TAB" is not indented a= s the heading it's
>>> in. Here is an example:
>>>
>>
>> Try "TAB <s TAB" instead.
>
> That's what I was doing but it seems the problem lies with
> org-indent-mode and is also present with regular text. Apparently,
> disabling and re-enabling seems to fix it. I'll investigate furthe= r.
>
> Julien.

I change my mode to whatever my src is in when I want indenting= to work
properly, then change it back when I want to see it as an org file again.
Dave



I've brought th= is up before, but I think there's value in SRC blocks /not/ being inden= ted, and in fact, I would love it if there were a way to make the contents = of the SRC blocks /not/ be indented (as opposed to the default 2 space offs= et).=A0=A0 Whitespace often matters, particularly when working with Python,= and every now and then I find myself having to manually delete the extra s= pacing when pasting code into the Python interpreter.=A0 Other times I want= to paste code snippets from SRC blocks into source files -- again, indenta= tion gets in the way.=A0 I agree that it's aesthetically appealing, but= my workflow would be easier without it.

--Leo
--001a11c36b4267bc9404dc638c19--