From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: org-babel - utility to ease chopping src chunks into smaller org entries Date: Tue, 21 Sep 2010 06:44:56 -0600 Message-ID: <87mxrbfd2w.fsf@gmail.com> References: <878w2xfllt.fsf@gmail.com> <877hihdqtz.fsf@gmail.com> <87fwx4sco2.fsf@gmail.com> <87fwx4jvjd.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=37108 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oy2lh-0001MD-LK for emacs-orgmode@gnu.org; Tue, 21 Sep 2010 09:20:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oy2lZ-0007LR-RB for emacs-orgmode@gnu.org; Tue, 21 Sep 2010 09:20:21 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:50790) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oy2lZ-0007KW-Mb for emacs-orgmode@gnu.org; Tue, 21 Sep 2010 09:20:13 -0400 Received: by pxi5 with SMTP id 5so3741221pxi.0 for ; Tue, 21 Sep 2010 06:20:12 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org Hi Seb, Thanks for pointing this out, I've pushed up a fix to this spacing issue. Best -- Eric S=C3=A9bastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: >> I've just added [org-babel-demarcate-block] to the org-mode repo. > > A comment. Consider the following, with a region beginning at =3Dcmd1=3D = and > ending after =3Dcmd3=3D (in other words, a full block of 3 lines): > > Text before > > cmd1 > cmd2 > cmd3 > > Text after > > After invoking your function, I get this: > > Text before > > #+begin_src sh > cmd1 > cmd2 > cmd3 > > #+end_src > Text after > > Very good, except that I would expect the space line out of the code bloc= k, as > it was not in my selected text: > > Text before > > #+begin_src sh > cmd1 > cmd2 > cmd3 > #+end_src > > Text after > > Is this possible? > > >> For now it still lives in the babel keymap behind (C-c C-v d) since it >> is fundamentally code-block related, however it can be called from >> anywhere in an org-mode file, and could of course be bound to any other >> key sequence in a personal config. > > I don't see any key binding (yet), after org-reload. > > Thanks for this... > > Best regards, > Seb