From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Inheriting some local variables from source code block editing buffers Date: Mon, 14 May 2018 18:47:52 +0200 Message-ID: <87d0xyxjyf.fsf@nicolasgoaziou.fr> References: <87bmdizb7k.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIGdm-0002Jz-6R for emacs-orgmode@gnu.org; Mon, 14 May 2018 12:48:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIGdh-00007Z-C1 for emacs-orgmode@gnu.org; Mon, 14 May 2018 12:48:02 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:57919) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fIGdh-000067-5V for emacs-orgmode@gnu.org; Mon, 14 May 2018 12:47:57 -0400 In-Reply-To: (=?utf-8?B?IkfDtmt0dcSf?= Kayaalp"'s message of "Mon, 14 May 2018 19:34:39 +0300") 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: =?utf-8?B?R8O2a3R1xJ8=?= Kayaalp Cc: emacs-orgmode@gnu.org G=C3=B6ktu=C4=9F Kayaalp writes: > The attr was meant for BEGIN_EXPORT blocks because it seems to me that > an equivalent of =E2=80=98org-babel-get-src-block-info=E2=80=99 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)) =3D> (":foo bar") and (cl-mapcan #'org-babel-parse-header-arguments (org-element-property :header (org-element-at-point))) =3D> ((: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 =E2=80=98org-e= dit-*=E2=80=99 > functions apart from =E2=80=98org-edit-src-code=E2=80=99 in org-src.el se= em to process > header arguments, and nor does =E2=80=98org-src--edit-element=E2=80=99. 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 .