emacs-orgmode
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]