From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Fwd: including external file in src block execution; ATTR_HTML on src blocks Date: Tue, 13 Dec 2016 20:08:51 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cH0sF-0003fp-9i for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 23:09:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cH0sC-0007cj-49 for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 23:08:59 -0500 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:25845) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1cH0sB-0007cI-NI for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 23:08:56 -0500 In-Reply-To: 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: Matt Price Cc: Org Mode On Tue, 13 Dec 2016, Matt Price wrote: > (sent to Charles direcly by mistake. Charles, this resend gave me the > chance to modify my response) > On Mon, Dec 12, 2016 at 10:52 PM, Charles C. Berry wrote: [snipping throughout] >>>> >>>> My questions are: >>>>> 1. can I pass this html attribute to the
 block somehow?


>>>> : (plist-get (cadr src-block) :attr_html)
>>>>
>>>> in `org-html-src-block' ?
>>>>


>
> :-)  I think what I meant was, looks like (org-export-read-attribute
> :attr_html src-block) RETURNS a plist.  But that doesn't seem to be quite
> true, if I'm understanding properly what a plist is.
>

It looks to me like `org-export-read-attribute' reliably returns a
plist when used with three args.

> Instead it returns a list of this form:
> (:code_attribs data-external-libs="https://cdnjs.cloudflare.com/ajax/
> libs/jquery/3.1.1/jquery.js" data-other="other" :class some class list)

That isn't a plist. I don't believe that `org-export-read-attribute'
gave you that. Maybe you dropped some quotes? Do you have an ECM that
shows that behavior?

>
> Access to the :properties only seems reliable through
> (org-export-read-attribute :attr_html src_plock :propname), which returns
> what should be an odd list of symbols (?) as a string. Again, it seems
> somewhat mysterious to me.

You lost me here. I don't know what `src_plock' contains, so I can't
really say whether what that returns makes sense or not.

Chuck