From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: [RFC] Block switches as #+HEADER: args? Date: Tue, 02 Sep 2014 11:35:57 +0200 Message-ID: <877g1mqs8y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOkVc-0005YT-I5 for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 05:36:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOkVW-0003xX-Ml for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 05:36:16 -0400 Received: from plane.gmane.org ([80.91.229.3]:48185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOkVW-0003xB-Gs for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 05:36:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XOkVV-0000fU-7F for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 11:36:09 +0200 Received: from e178189199.adsl.alicedsl.de ([85.178.189.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 11:36:09 +0200 Received: from tjolitz by e178189199.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 11:36:09 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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