From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Local variables in an org file Date: Thu, 20 Aug 2015 09:39:32 +0300 Message-ID: <87fv3e4g63.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSJVo-0005AR-27 for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 02:39:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSJVk-0003US-S1 for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 02:39:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:51767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSJVk-0003UI-LW for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 02:39:40 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZSJVi-0005q7-EB for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 08:39:38 +0200 Received: from 89-27-26-138.bb.dnainternet.fi ([89.27.26.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Aug 2015 08:39:38 +0200 Received: from jarmo.hurri by 89-27-26-138.bb.dnainternet.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Aug 2015 08:39:38 +0200 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: emacs-orgmode@gnu.org 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