[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Inheriting some local variables from source code block editing b
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Inheriting some local variables from source code block editing buffers |
Date: |
Mon, 14 May 2018 18:47:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Göktuğ Kayaalp <address@hidden> writes:
> The attr was meant for BEGIN_EXPORT blocks because it seems to me that
> an equivalent of ‘org-babel-get-src-block-info’ does not exist for those
> blocks, and that function _only_ works with BEGIN_SRC blocks. Is there
> a function available or would I have to write one to do this?
With the following example:
#+header: :foo bar
#+begin_export latex
Foo
#+end_export
(org-element-property :header (org-element-at-point)) => (":foo bar")
and
(cl-mapcan #'org-babel-parse-header-arguments
(org-element-property :header (org-element-at-point)))
=>
((:foo . "bar"))
> Looking all over the Org manual searching for BEGIN_(LATEX|HTML), I
> haven't seen once a header argument used with a block that is not a
> BEGIN_SRC block, in neither of the forms. And none of the ‘org-edit-*’
> functions apart from ‘org-edit-src-code’ in org-src.el seem to process
> header arguments, and nor does ‘org-src--edit-element’.
True, but this is also true for "attr_...".
> I can't find any documentation on Org-mode's internal APIs and how
> different parts fit together, so I'm having to figure things out reading
> source code.
See <https://orgmode.org/worg/dev/org-element-api.html>.
- Re: [O] Inheriting some local variables from source code block editing buffers, (continued)
- Re: [O] Inheriting some local variables from source code block editing buffers, Aaron Ecay, 2018/05/01
- Re: [O] Inheriting some local variables from source code block editing buffers, Göktuğ Kayaalp, 2018/05/01
- Re: [O] Inheriting some local variables from source code block editing buffers, Aaron Ecay, 2018/05/01
- Re: [O] Inheriting some local variables from source code block editing buffers, Göktuğ Kayaalp, 2018/05/01
- Re: [O] Inheriting some local variables from source code block editing buffers, Nicolas Goaziou, 2018/05/02
- Re: [O] Inheriting some local variables from source code block editing buffers, Göktuğ Kayaalp, 2018/05/02
Re: [O] Inheriting some local variables from source code block editing buffers, Göktuğ Kayaalp, 2018/05/01
Re: [O] Inheriting some local variables from source code block editing buffers, Göktuğ Kayaalp, 2018/05/14
- Re: [O] Inheriting some local variables from source code block editing buffers, Nicolas Goaziou, 2018/05/14
- Re: [O] Inheriting some local variables from source code block editing buffers, Göktuğ Kayaalp, 2018/05/14
- Re: [O] Inheriting some local variables from source code block editing buffers,
Nicolas Goaziou <=
- Re: [O] Inheriting some local variables from source code block editing buffers, Göktuğ Kayaalp, 2018/05/15
- Re: [O] Inheriting some local variables from source code block editing buffers, Göktuğ Kayaalp, 2018/05/18
- Re: [O] Inheriting some local variables from source code block editing buffers, Nicolas Goaziou, 2018/05/19
- Re: [O] Inheriting some local variables from source code block editing buffers, Aaron Ecay, 2018/05/21
Re: [O] Inheriting some local variables from source code block editing buffers, Aaron Ecay, 2018/05/14