From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: new exporter drops :parameters ? Date: Tue, 3 Jul 2012 03:51:29 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Slu9U-00065f-Nj for emacs-orgmode@gnu.org; Mon, 02 Jul 2012 23:51:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Slu9T-0000S1-04 for emacs-orgmode@gnu.org; Mon, 02 Jul 2012 23:51:48 -0400 Received: from plane.gmane.org ([80.91.229.3]:46329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Slu9S-0000Rl-Ov for emacs-orgmode@gnu.org; Mon, 02 Jul 2012 23:51:46 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Slu9M-0004Et-Tv for emacs-orgmode@gnu.org; Tue, 03 Jul 2012 05:51:41 +0200 Received: from adsl-69-224-191-120.dsl.sndg02.pacbell.net ([69.224.191.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Jul 2012 05:51:40 +0200 Received: from ccberry by adsl-69-224-191-120.dsl.sndg02.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Jul 2012 05:51: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 I am trying to put together a derived backend that makes use of Src Block :parameters attribute. I can see that the header in a begin_src block is picked up by org-element-src-block-parser, as it should be when I try it interactively But not when I try M-: (org-export-to-buffer 'my-latex "*latex out*") RET Here is an example: ========================= #+BEGIN_SRC emacs-lisp (org-export-define-derived-backend my-latex e-latex :translate-alist ((src-block . org-rnw-src-block))) (defun org-rnw-src-block (src-block contents info) (org-element-src-block-interpreter src-block contents)) #+END_SRC (progn (forward-line 3) (org-element-src-block-interpreter (org-element-src-block-parser) nil)) move cursor back after last paren and type C-x C-e #+name: bblock #+BEGIN_SRC R :exports code :et-cetera rnorm(2)+1 #+END_SRC =========================== Typing C-x C-e as above yields "#+BEGIN_SRC R :exports code :et-cetera rnorm(2)+1 #+END_SRC" but using the org-export-to-buffer line above yields [much deleted] #+BEGIN_SRC R rnorm(2)+1 #+END_SRC % Generated by Org mode 7.8.10 in Emacs 23.3.50.1. \end{document} I'd really like to have access to the header elements. AFAICS :parameters is nowhere to be found when using org-export-to-buffer. What can I do??