From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: [BUG] src code block header does not override buffer-wide header in property Date: Wed, 29 Jun 2016 09:47:22 -0700 Message-ID: References: <87ziq4fu0v.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIIee-0001PO-8a for emacs-orgmode@gnu.org; Wed, 29 Jun 2016 12:48:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIIea-0004Fm-He for emacs-orgmode@gnu.org; Wed, 29 Jun 2016 12:47:59 -0400 Received: from iport-acv2-out.ucsd.edu ([132.239.0.174]:1248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIIea-0004AD-8k for emacs-orgmode@gnu.org; Wed, 29 Jun 2016 12:47:56 -0400 In-Reply-To: <87ziq4fu0v.fsf@alphaville.usersys.redhat.com> 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: Nick Dokos Cc: emacs-orgmode@gnu.org 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 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. Chuck