From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [RFC] Block switches as #+HEADER: args? Date: Tue, 02 Sep 2014 12:01:29 +0200 Message-ID: <87y4u2pchy.fsf@gmail.com> References: <877g1mqs8y.fsf@gmail.com> <87bnqymk3n.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOkuN-0000Es-Ha for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 06:01:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOkuG-0006io-4M for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 06:01:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:33206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOkuF-0006ig-M5 for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 06:01:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XOkuC-0005UM-LV for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 12:01:40 +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 12:01:40 +0200 Received: from tjolitz by e178189199.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 12:01:40 +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 Nicolas Goaziou writes: > Hello, > > Thorsten Jolitz writes: > >> and at least in the 2nd case the switches are lost, because they don't >> work as header args: > > [...] > >> #+HEADER: -n >> #+BEGIN_EXAMPLE >> Hallo World >> whats up? >> #+END_EXAMPLE > > This is not valid syntax. Switches are to be put on the block line. > Only header arguments can be put on a #+HEADER line. See > > (info "(Org) Structure of code blocks") > > in particular the difference between switches and header arguments. Thats what I thought, but wouldn't it be nicer to treat switches and header args more uniformly here? E.g allow something like: #+HEADER: :switches -n #+BEGIN_EXAMPLE Hallo World whats up? #+END_EXAMPLE Otherwise custom solutions are needed to store the switches in some place when nuking the surrounding #+begin/#+end lines in a conversion process, and restore them again when converting back to Org. Or the switches-info is simply lost during conversion. -- cheers, Thorsten