From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: :no-expand not working on variables? Date: Mon, 31 Mar 2014 09:34:19 +0200 Message-ID: References: <87k3bbg4ga.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUWjy-0003LW-9l for emacs-orgmode@gnu.org; Mon, 31 Mar 2014 03:34:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUWjr-0003Pl-Sy for emacs-orgmode@gnu.org; Mon, 31 Mar 2014 03:34:42 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:57709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUWjr-0003Oo-Ne for emacs-orgmode@gnu.org; Mon, 31 Mar 2014 03:34:35 -0400 Received: by mail-wi0-f179.google.com with SMTP id z2so1001933wiv.0 for ; Mon, 31 Mar 2014 00:34:34 -0700 (PDT) In-Reply-To: <87k3bbg4ga.fsf@gmail.com> (Eric Schulte's message of "Sun, 30 Mar 2014 08:13:09 -0600") 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: Eric Schulte Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eric Schulte writes: > According to the manual :no-expand is only supposed to have an effect > during tangling, not execution. Thanks Eric - re-reading the manual, it became clear. Maybe to clarify this in the manual, one could say: ,---- | The `:no-expand' header argument can be used to turn off this behavior | for tangling and has no effect on the expansion during code execution. `---- instead of: ,---- | The `:no-expand' header argument can be used to turn off this behavior. `---- Rainer > > Best, > > Rainer M Krug writes: > >> Hi >> >> shouldn't the following not give an error from R as it should not be >> expanding the variables? >> >> --8<---------------cut here---------------start------------->8--- >> #+PROPERTY: no-expand TRUE >> #+PROPERTY: var YEAR=3D2014 >> >> * a noexpand code >> >> #+begin_src R :results output :no-expand >> cat(YEAR) >> #+end_src >> >> #+RESULTS: >> : 2014 >> --8<---------------cut here---------------end--------------->8--- >> >> The manual states: >> >> ,---- >> | 14.8.2.11 `:no-expand' >> | ...................... >> |=20 >> | By default, code blocks are expanded with `org-babel-expand-src-block' >> | during tangling. This has the effect of assigning values to variables >> | specified with `:var' (see *Note var::), and of replacing "noweb" >> | references (see *Note Noweb reference syntax::) with their targets. T= he >> | `:no-expand' header argument can be used to turn off this behavior. >> `---- >> >> Org-mode version 8.2.5h (release_8.2.5h-869-gdcfe09 @ >> /Users/rainerkrug/.emacs.d/org-mode/lisp/) >> >> Cheers, >> >> Rainer =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJTORqHAAoJENvXNx4PUvmCxrwH/iY436kRFmYemZGYLFoEfcON woRdBiSc2W1BOA2Dg4vvJuHYo+MeqRSYapswy2mbGByNKGh4YK0WsDZvvDxxB1WN DOFYwIXuyVSIZJ55cUUq826JTxd+j1kwtXt4U/NTyusUJ+8Tm/X+7wwEVXDlLCVx n9WBRj6cWfTY8WEZ9Px/KGCW+7AMRGKyyu33vHmXqIKbKx3GfjkbFW2IPDEGn2kf 0w1yyAaxDVydsjrm7Op6cPgXa7H242QqXZcASzm1xb0N/r9ZABI9sxPRg6UFPjMG rGZ/ejMfZx6zmGzFf5BsvVxDgjcQoWhE7YurC28G1WbGChCe8pLBYk4uv3HD4Ig= =fYBL -----END PGP SIGNATURE----- --=-=-=--