From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?G=C3=B6ktu=C4=9F_Kayaalp?= Subject: Re: Inheriting some local variables from source code block editing buffers Date: Wed, 02 May 2018 01:26:23 +0300 Message-ID: References: <874ljt3bs0.fsf@gnu.org> <87h8nrkbpw.fsf@nicolasgoaziou.fr> <878t93ioa1.fsf@nicolasgoaziou.fr> <87bmdzbad6.fsf@gmail.com> <876047b257.fsf@gmail.com> <871sevayhz.fsf@gmail.com> 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]:60226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDdjD-0000jT-F0 for emacs-orgmode@gnu.org; Tue, 01 May 2018 18:26:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDdjA-0000vM-9K for emacs-orgmode@gnu.org; Tue, 01 May 2018 18:26:31 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:52703) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDdjA-0000ut-1K for emacs-orgmode@gnu.org; Tue, 01 May 2018 18:26:28 -0400 In-Reply-To: (=?utf-8?B?IkfDtmt0dcSf?= Kayaalp"'s message of "Wed, 02 May 2018 01:12:30 +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: Aaron Ecay Cc: emacs-orgmode@gnu.org On 2018-05-02 01:12 +03, G=C3=B6ktu=C4=9F Kayaalp wrote: > Okay, I'll read up on these, both code and manuals. So we've agreed > that what we want is a new header argument, =E2=80=98:edit-vars=E2=80=99,= whose value is > a form similar to a varlist, where > > - a form (var val) means bind var to val in the editing buffer, > > - a symbol var means bind var in the editing buffer to the buffer-local > value of it in the relevant x.org buffer, as in (setq > (make-local-variable var) (with-current-buffer "x.org" var)) > > Do you confirm? Also, what do you think about :edit-bindings or > :edit-locals instead of :edit-vars? :var is a completely different > thing, and :edit-vars may cause confusion, given the similarity of the > name. Also, another question remains: how do we extend this to #+begin_export blocks? But that's unclear to me maybe because I don't know in detail how header arguments work. Ideally this feature would work for _any block_ editable by =E2=80=98org-edit-special=E2=80=99 (i.e. C-c '), and aga= in ideally using the same syntax. --=20 =C4=B0. G=C3=B6ktu=C4=9F Kayaalp 024C 30DD 597D 142B 49AC 40EB 465C D949 B101 2427