From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: Unable to retrieve :parameters for src-block [org-element] Date: Tue, 17 Oct 2017 16:31:03 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4Ulv-0006AZ-C2 for emacs-orgmode@gnu.org; Tue, 17 Oct 2017 12:31:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4Ulp-0004uj-Ow for emacs-orgmode@gnu.org; Tue, 17 Oct 2017 12:31:15 -0400 Received: from iport-acv4-out.ucsd.edu ([132.239.0.7]:55110) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4Ulp-0004r9-9l for emacs-orgmode@gnu.org; Tue, 17 Oct 2017 12:31:09 -0400 In-Reply-To: Content-Language: en-US Content-ID: <052F4AB08B8F3B468A331202FC9EF2D2@AD.UCSD.EDU> 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" To: Kaushal Modi Cc: emacs-org list > On Oct 17, 2017, at 5:51 AM, Kaushal Modi wrote: >=20 > So it is clear that the parameters are read inside org-element-src-block-= parser, but I don't understand why (org-element-property :parameters src-bl= ock) is unable to fetch the same. >=20 > Hints? > --=20 The copy buffer that org-export-as sets up will contain this src block *aft= er* the babel process runs. #+BEGIN_SRC emacs-lisp -n (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") #+END_SRC As you can see the headers are stripped off of it. So you need to do something tricky to hold onto those headers. I do not kn= ow of a seamless way to do this. FWIW, this is handled in ox-ravel by hack= ing babel so it produces #+ATTR_ lines just before the src block result in = the copy buffer. Those lines hold the header info which the ravel exporter = trancoders can consult. There might be a tricky way to use :wrap to rewrite the src block with the = other headers intact. HTH, Chuck=