emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Fwd: including external file in src block execution; ATTR_HTML o


From: Charles C. Berry
Subject: Re: [O] Fwd: including external file in src block execution; ATTR_HTML on src blocks
Date: Tue, 13 Dec 2016 20:08:51 -0800
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

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 <address@hidden> wrote:

[snipping throughout]


My questions are:
1. can I pass this html attribute to the <pre><code> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]