From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: Local variables in an org file Date: Thu, 20 Aug 2015 21:23:59 -0500 Message-ID: References: <87fv3e4g63.fsf@iki.fi> 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]:46733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSbzt-0000kz-4o for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 22:24:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSbzs-0007am-1z for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 22:24:01 -0400 Received: from mail-ig0-x231.google.com ([2607:f8b0:4001:c05::231]:34533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSbzr-0007aZ-T7 for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 22:23:59 -0400 Received: by igui7 with SMTP id i7so8371969igu.1 for ; Thu, 20 Aug 2015 19:23:59 -0700 (PDT) In-Reply-To: <87fv3e4g63.fsf@iki.fi> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jarmo Hurri Cc: "emacs-orgmode@gnu.org" I've been thinking about this all week. Must be in the global memory space. Grant Rettke -- gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates =E2=80=9CAll creativity is an extended form of a joke.=E2=80=9D --Kay ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Thu, Aug 20, 2015 at 1:39 AM, Jarmo Hurri wrote: > > Greetings. > > Is there a way to define a (preferably local) variable in an org file so > that the value of that variable could be referenced in both plain text > and code blocks? > > I often bump into situations where I have a value, say 768, and I use > that value both in code blocks and in the accompanying text. Now basic > programming approach tells me that if and when I need to change that > value, I should be able to do that by changing the value in only one > location. That implies defining a variable for the value. > > Properties sound like they might be the solution. But I don't know how > to refer to properties in text and code. > > Jarmo > >