From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Change in org-babel with indenting code blocks? Date: Tue, 30 Aug 2011 22:25:10 +0200 Message-ID: <874o0yir4p.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyUsY-0006mb-9v for emacs-orgmode@gnu.org; Tue, 30 Aug 2011 16:25:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyUsW-0003cF-GQ for emacs-orgmode@gnu.org; Tue, 30 Aug 2011 16:25:50 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:55348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyUsW-0003c8-Ak for emacs-orgmode@gnu.org; Tue, 30 Aug 2011 16:25:48 -0400 Received: by wyi11 with SMTP id 11so5811405wyi.0 for ; Tue, 30 Aug 2011 13:25:47 -0700 (PDT) In-Reply-To: (John Wiegley's message of "Mon, 29 Aug 2011 16:07:01 -0500") 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: John Wiegley Cc: emacs-orgmode@gnu.org Hello, John Wiegley writes: > I don't have any org-babel variables customized. I have a code block like > this: > > *** NOTE Assets:Receivable:CEG > #+begin_src sh :results value :exports results > ledger reg --inject=Expected '^income:ceg' > ledger reg --sort date -b 2007 receivable:CEG > #+end_src > :PROPERTIES: > :ID: 8BEF6C42-8B23-495B-9421-3810B58907A1 > :VISIBILITY: folded > :CREATED: [2010-06-18 Fri 07:37] > :END: Actually this not Babel related. Some functions, like `org-end-of-meta-data-and-drawers' and `org-fixup-indentation', assume that all drawers (along with time-stamps, etc.) live before any text in the headline. So for now, a solution would be to move the block after the drawer. > When I put my cursor on the '*' in the heading and hit 'r', I was used to the > whole entry, including the code block, getting indented by one space. Now > everything *but* the code block gets indented. > > Is this new behavior? How do I get back to the old behavior? I don't want my > code blocks sticking to a fixed column. I haven't checked but I don't think it is new. Regards, -- Nicolas Goaziou