From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [BUG] src code block header does not override buffer-wide header in property Date: Wed, 29 Jun 2016 14:04:34 -0400 Message-ID: <87furvg9cd.fsf@alphaville.usersys.redhat.com> References: <87ziq4fu0v.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIJrJ-00050r-4U for emacs-orgmode@gnu.org; Wed, 29 Jun 2016 14:05:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIJrE-0006oe-2q for emacs-orgmode@gnu.org; Wed, 29 Jun 2016 14:05:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:44472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIJrD-0006oZ-SB for emacs-orgmode@gnu.org; Wed, 29 Jun 2016 14:05:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bIJr4-0007ho-Jf for emacs-orgmode@gnu.org; Wed, 29 Jun 2016 20:04:54 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2016 20:04:54 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2016 20:04:54 +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" To: emacs-orgmode@gnu.org "Charles C. Berry" writes: > Not a bug. See below. > > On Wed, 29 Jun 2016, Nick Dokos wrote: > >> This was reported on SO: >> >> http://stackoverflow.com/questions/37414837/org-mode-overwriting-globals-properties-in-block-headers >> >> The ECM is as follows: >> >> --8<---------------cut here---------------start------------->8--- >> #+PROPERTY: header-args :results silent >> >> #+BEGIN_SRC elisp >> ;; this one is silent >> (setq foo "bar) >> #+END_SRC >> >> #+BEGIN_SRC elisp :results output >> ;; this one is being outputted >> (princ "foo") >> #+END_SRC >> --8<---------------cut here---------------end--------------->8--- >> >> The second code block *should* output "foo" as its result, but it does >> not: the :results silent header in the property seems to be in conrol. > > Maybe you meant > > #+BEGIN_SRC elisp :results output replace :exports both > ;; this one is being outputted > (princ "foo") > #+END_SRC > OK - I can never remember the meaning of all the results permutations but replace does reverse the result of silent (I don't care about export in this case). > > i.e. export code and results and replace the existing result or insert a > new result. > > See (info "(org) results") and scroll down to the 'Handling' paragraph. > Thanks for the reference - I obviously need to re-read this a few times. -- Nick