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:12:30 +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]:57707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDdVl-0006V0-2q for emacs-orgmode@gnu.org; Tue, 01 May 2018 18:12:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDdVh-0005NI-T3 for emacs-orgmode@gnu.org; Tue, 01 May 2018 18:12:37 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:45569) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDdVh-0005Mb-LK for emacs-orgmode@gnu.org; Tue, 01 May 2018 18:12:33 -0400 In-Reply-To: <871sevayhz.fsf@gmail.com> (Aaron Ecay's message of "Tue, 01 May 2018 21:53:44 +0100") 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-01 21:53 +01, Aaron Ecay wrote: > That is excellent news :) If you run into anything you can=CA=BCt figure = out > then let us know. I will probably be able to start working on this next weekend (tho there is some stuff that can inevitably slow me down this week). In the mean time other people can comment both on this and on where to put the resulting feature. > But because of the nature of the variable (a lisp list), it can only be > set once. So you can have only one of: > [...] > But they can=CA=BCt be combined. AFAIR, :var is the only header argument > that can be meaningfully specified more than once. 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, w= hose 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. --=20 =C4=B0. G=C3=B6ktu=C4=9F Kayaalp 024C 30DD 597D 142B 49AC 40EB 465C D949 B101 2427