[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: org-babel - utility to ease chopping src chunks into small
From: |
Sébastien Vauban |
Subject: |
[Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries |
Date: |
Mon, 20 Sep 2010 17:15:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
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 =cmd1= and
ending after =cmd3= (in other words, a full block of 3 lines):
--8<---------------cut here---------------start------------->8---
Text before
cmd1
cmd2
cmd3
Text after
--8<---------------cut here---------------end--------------->8---
After invoking your function, I get this:
--8<---------------cut here---------------start------------->8---
Text before
#+begin_src sh
cmd1
cmd2
cmd3
#+end_src
Text after
--8<---------------cut here---------------end--------------->8---
Very good, except that I would expect the space line out of the code block, as
it was not in my selected text:
--8<---------------cut here---------------start------------->8---
Text before
#+begin_src sh
cmd1
cmd2
cmd3
#+end_src
Text after
--8<---------------cut here---------------end--------------->8---
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
--
Sébastien Vauban
- [Orgmode] org-babel - utility to ease chopping src chunks into smaller org entries, Richard Riley, 2010/09/18
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Sébastien Vauban, 2010/09/19
- Re: [Orgmode] org-babel - utility to ease chopping src chunks into smaller org entries, Eric Schulte, 2010/09/19
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Richard Riley, 2010/09/19
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Richard Riley, 2010/09/19
- Re: [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Eric Schulte, 2010/09/19
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Richard Riley, 2010/09/20
- Re: [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Eric Schulte, 2010/09/20
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries,
Sébastien Vauban <=
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Sébastien Vauban, 2010/09/20
- Re: [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Eric Schulte, 2010/09/21
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Dan Davison, 2010/09/21
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Sébastien Vauban, 2010/09/21
- Re: [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Eric Schulte, 2010/09/21
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Sébastien Vauban, 2010/09/21
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Dan Davison, 2010/09/20
- Re: [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Christian Moe, 2010/09/21
- [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Richard Riley, 2010/09/21
- Re: [Orgmode] Re: org-babel - utility to ease chopping src chunks into smaller org entries, Eric Schulte, 2010/09/21