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 14:13:51 +0200 Message-ID: <87bmdizb7k.fsf@nicolasgoaziou.fr> References: 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]:39768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fICMc-00028M-Lo for emacs-orgmode@gnu.org; Mon, 14 May 2018 08:14:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fICMZ-0000nJ-9B for emacs-orgmode@gnu.org; Mon, 14 May 2018 08:14:02 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:47863) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fICMZ-0000mm-2c for emacs-orgmode@gnu.org; Mon, 14 May 2018 08:13:59 -0400 In-Reply-To: (=?utf-8?B?IkfDtmt0dcSf?= Kayaalp"'s message of "Mon, 14 May 2018 08:44:15 +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 Hello, G=C3=B6ktu=C4=9F Kayaalp writes: > Sorry for the silence, I've finally got around to implementing this, and > implemented it as an advice, which supports both an =E2=80=98:edit-bindin= gs=E2=80=99 > Babel header argument for source code blocks, and an #+ATTR_EDIT: > element property for export blocks, etc. Find the code below, and > attached an Org mode file to help with testing. Thank you. Some comments follow. You shouldn't add another "attr" keyword, which is reserved for export back-ends. Actually, every Babel header can be located either on the block opening line, e.g., #+begin_src emacs-lisp :some-property some-value or as an affiliated #+header: keyword, e.g., #+header: :some-property some-value #+begin_src emacs-lisp Note that "#+header:" keywords are supported everywhere, without modifying the parser, e.g., #+header: :some-property some-value A paragraph. Also, for integration in Org mode proper, some testing would be more than welcome Regards, --=20 Nicolas Goaziou