From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: Local variables in an org file Date: Fri, 21 Aug 2015 13:54:17 +0300 Message-ID: <87twrssyhy.fsf@iki.fi> References: <87fv3e4g63.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSjy0-0003iI-PM for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 06:54:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSjxx-0003rX-Ex for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 06:54:36 -0400 Received: from plane.gmane.org ([80.91.229.3]:60573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSjxx-0003rK-93 for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 06:54:33 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZSjxs-0003wv-Is for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 12:54:28 +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 ; Fri, 21 Aug 2015 12:54:28 +0200 Received: from jarmo.hurri by 89-27-26-138.bb.dnainternet.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2015 12:54:28 +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 Thomas S. Dye writes: > * Define a local variable > #+name: my-var > #+header: :exports none > #+begin_src R > 768 > #+end_src > #+name: pass-my-var-to-code-block > #+header: :var x=my-var > #+header: :exports both > #+begin_src emacs-lisp > (+ x 1) > #+end_src > > #+results: pass-my-var-to-code-block > : 769 > > The variable is call_my-var(). Yeah, this will work, but it's a huge amount of work. It would be brilliant if one could easily refer to a property inside a subtree. In both text and code. Jarmo