From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: accessing source block header arguments from exporters Date: Fri, 10 Apr 2015 21:52:37 +0200 Message-ID: <55282A05.8040203@roklein.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ygeyo-0002sA-Mg for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 15:52:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ygeyl-0001bl-Dj for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 15:52:42 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:61898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ygeyl-0001bV-3r for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 15:52:39 -0400 Received: from [192.168.254.108] ([91.67.33.49]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0MF9xL-1YarIk2KCJ-00GLDp for ; Fri, 10 Apr 2015 21:52:37 +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, is there a way, to read header arguments to source blocks in the exporters org--src-block funktions? E.g. is there a way to access :firstline in the example below? #+begin_src c++ -n :firstline 23 static struct { char *entity; unsigned char equiv; } entities[] = { { "lt", '<' } , { "gt", '>' } , { "amp", '&' } , { "quot", '"' } , { "trade", 153 } , /* trade mark */ #+end_src I didn't find it in the `element' structure. However, if I use #+begin_src c++ firstline=23 // random C++ #+end_src I could access :parameters from `element' and parse the string. However I'm not sure if I'd break some babel stuff or not. If I'm trying to implement a firstline feature -- source blocks with new line numbering (-n) beginning at a given line number -- I'd prefer to use :firstline, but I didn't find anything to suggest `:XXX ZZ' header arguments to source blocks are available to the exporters. Any advice? Thank you very much Robert