From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [RFC] Block switches as #+HEADER: args?
Date: Tue, 02 Sep 2014 11:35:57 +0200 [thread overview]
Message-ID: <877g1mqs8y.fsf@gmail.com> (raw)
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
next reply other threads:[~2014-09-02 9:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-02 9:35 Thorsten Jolitz [this message]
2014-09-02 9:45 ` [RFC] Block switches as #+HEADER: args? Nicolas Goaziou
2014-09-02 10:01 ` Thorsten Jolitz
2014-09-02 10:33 ` Nicolas Goaziou
2014-09-02 11:07 ` Thorsten Jolitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877g1mqs8y.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).