From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Bug: BABEL Buffer-wide header arguments are NOT effective [7.8.11] Date: Fri, 31 Aug 2012 10:57:51 -0600 Message-ID: <8739336ltc.fsf@gmx.com> References: <1346341184.10633.YahooMailRC@web181504.mail.ne1.yahoo.com> <87vcg0cr5u.fsf@gmx.com> <1346431124.34381.YahooMailRC@web181501.mail.ne1.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7UY7-0000Tp-8H for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 12:58:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7UY3-0001Sd-0S for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 12:58:27 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:40775) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1T7UY2-0001SU-QM for emacs-orgmode@gnu.org; Fri, 31 Aug 2012 12:58:22 -0400 In-Reply-To: <1346431124.34381.YahooMailRC@web181501.mail.ne1.yahoo.com> (Feiming Chen's message of "Fri, 31 Aug 2012 09:38:44 -0700 (PDT)") 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: Feiming Chen Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Feiming Chen writes: > HI Eric: > > Thanks a lot! But I am still having trouble with some buffer-wide header > arguments. In particular, I could not have the following code working as > expected: > > > #+PROPERTY: :eval no > > * test 3: Buffer-wide header arguments are NOT effective > #+begin_src R :exports both > print(pi) > #+end_src > > I am getting the result printed even though I turned the evaluation off. It > seems I could not turn off the evaluation with ":eval no" in the buffer-wide > header argument. Could you help? > Hi Feiming, I apologize. I gave you bad advice in my previous email. Please use the #+PROPERTY: setting as in your original email and as described in the Org-mode manual. Do *not* add a leading ":" to header argument names as I suggested. The following two Org-mode files both work as expected locally. If a buffer-wide header argument doesn't seem to be active, you can activate it by pressing C-c C-c on the #+PROPERTY: line. --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=eval.org #+PROPERTY: eval no #+begin_src R print(pi) #+end_src --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=a.org #+PROPERTY: exports both #+PROPERTY: results output * test 1: Buffer-wide header arguments are NOT effective #+begin_src R print(pi) #+end_src * test 1: Code block specific header arguments are effective #+begin_src R :exports both :results output print(pi) #+end_src --=-=-= Content-Type: text/plain Cheers, > > > Sincerely, > Feiming Chen > > > > > ________________________________ > From: Eric Schulte > To: Feiming Chen > Cc: emacs-orgmode@gnu.org > Sent: Thu, August 30, 2012 11:53:44 AM > Subject: Re: [O] Bug: BABEL Buffer-wide header arguments are NOT effective > [7.8.11] > > Feiming Chen writes: > >> Hi: Could anyone help with the following problem? >> >> Please see the attached file "a.org" with its text export "a.txt" (from C-c C-e >> >> a). >> > > Replace > > #+PROPERTY: exports both > #+PROPERTY: results output > > with > > #+PROPERTY: :exports both > #+PROPERTY: :results output > > Best, -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--