From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: evaluation context in call statements Date: Tue, 25 Jun 2013 13:34:47 -0400 Message-ID: <444ea6cff489e2adc97092bdac881aef@mail.rickster.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrX8k-0004YQ-QL for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 13:34:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrX8i-0002XS-5H for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 13:34:50 -0400 Received: from [204.62.15.78] (port=53664 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrX8i-0002XN-2m for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 13:34:48 -0400 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 FThe arguments to a `#+call' line are evaluated in the context of the called block and not the calling block. This seems like a bug to me. For example, in the following i would expect the `call' to return "Call" and not "Source" as the results: =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 * Source =E2=94=82 #+name: message =E2=94=82 #+BEGIN_SRC elisp :var m=3D"foo" =E2=94=82 m =E2=94=82 #+END_SRC =E2=94=82 =E2=94=82 #+RESULTS: message =E2=94=82 : foo =E2=94=82 =E2=94=82 * Call =E2=94=82 #+call: message(m=3D(nth 4 (org-heading-components))) =E2=94=82 =E2=94=82 #+RESULTS: message(m=3D(nth 4 (org-heading-components))) =E2=94=82 : Source =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 is there any way to reference the current context in a `call' line? rick