From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Passing values by reference to src-blocks Date: Wed, 25 Jun 2014 05:38:30 +0200 Message-ID: <87k3851ww9.fsf@gmail.com> References: <87wqc5srtf.fsf@gmail.com> <87vbrpbsii.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wze2v-0001S7-Ih for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 23:39:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wze2l-000538-TX for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 23:38:53 -0400 Received: from plane.gmane.org ([80.91.229.3]:36282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wze2l-00052l-No for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 23:38:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wze2k-0008G3-Hz for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 05:38:42 +0200 Received: from e178059054.adsl.alicedsl.de ([85.178.59.54]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jun 2014 05:38:42 +0200 Received: from tjolitz by e178059054.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jun 2014 05:38:42 +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 Eric Schulte writes: >> Wrong usage of :var or limitations of header arguments? > > This is to be expected. The two blocks above compose to something like > > #+begin_src emacs-lisp > (file-name-nondirectory > (file-name-directory > (directory-file-name > (file-name-directory > (buffer-file-name))))) > #+end_src > > Calling `file-name-nondirectory' on the results of `file-name-directory' > seems like it should give you an empty string. Yes, I figured that out myself before I saw your post, there was a mistake in my code. Thanks anyway. -- cheers, Thorsten