Hi List, 

I wrote `org-dp-toggle-headers' (https://github.com/tj64/org-dp) which
allows to toggle between parameters and header-args:

#+BEGIN_SRC emacs-lisp -n :cache no
(+ 2 2)
#+END_SRC

#+HEADER: :cache no
#+BEGIN_SRC emacs-lisp -n
(+ 2 2)
#+END_SRC

and I convert sources back and forth between org-mode (src-blocks) and
plain (programming-mode) code in outorg, and at least in the 2nd case
the switches are lost, because they don't work as header args:

#+BEGIN_ORG
* ORG SCRATCH

#+BEGIN_EXAMPLE -n
Hallo World
whats up?
#+END_EXAMPLE

#+HEADER: -n
#+BEGIN_EXAMPLE
Hallo World
whats up?
#+END_EXAMPLE
#+END_ORG

,----
| C-c C-e t A =>
`----


1 ORG SCRATCH
=============

  ,----
  | 1  Hallo World
  | 2  whats up?
  `----

  ,----
  | Hallo World
  | whats up?
  `----

Is there a special keyword for this, or is it not implemented yet? Are
there plans to make it work - it would be nice if all the info (except
the block-type and language) of the #+BEGIN_XYZ line could given as
header args too, so that no information is lost when converting a
block. 

-- 
cheers,
Thorsten



Reply via email to