From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Concatenating header args Date: Tue, 6 Mar 2018 07:31:54 -0800 Message-ID: References: <877eqpo8sf.fsf@luisa.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114c0cec72e2f30566c024dd" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etEZJ-0007dN-Mj for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 10:31:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etEZI-0003Lz-I8 for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 10:31:57 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:54808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etEZI-0003L6-7P for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 10:31:56 -0500 Received: by mail-wm0-x236.google.com with SMTP id z81so23572288wmb.4 for ; Tue, 06 Mar 2018 07:31:55 -0800 (PST) In-Reply-To: <877eqpo8sf.fsf@luisa.c0t0d0s0.de> 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: Michael Welle Cc: org-mode-email --001a114c0cec72e2f30566c024dd Content-Type: text/plain; charset="UTF-8" I am pretty sure this isn't possible. The headers get overridden by the most local settings. There isn't a way to concatenate them. In some cases there isn't a way to figure out what you want, e.g. if a heading property said ":tangle no" and your header said ":tangle yes" it would not make sense to concatenate these to ":tangle no yes". I think you have to add -Wall to the src header. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Tue, Mar 6, 2018 at 1:25 AM, Michael Welle wrote: > Hello, > > how can I concatenate header args? Let's assume I have an Org structure > like follows: > > * foo > :PROPERTIES: > :header-args: :flags -Wall > :END: > ** bar > #+begin_src C :flags -lm > #+end_src > > Now I want the code to be compiled with -Wall _and_ -lm. > > Regards > hmw > > --001a114c0cec72e2f30566c024dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am pretty sure this isn't possible. The headers get = overridden by the most local settings. There isn't a way to concatenate= them. In some cases there isn't a way to figure out what you want, e.g= . if a heading property said ":tangle no" and your header said &q= uot;:tangle yes" it would not make sense to concatenate these to "= ;:tangle no yes".

I think you have to add -Wall to = the src header.

John

-------------------------------= ----
Professor John Kitchin=C2=A0
Doherty Hall A207F
Department of= Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213=
412-268-7803

On Tue, Mar 6, 2018 at 1:25 AM, Michael Well= e <mwe012008@gmx.net> wrote:
Hello,

how can I concatenate header args? Let's assume I have an Org structure=
like follows:

* foo
=C2=A0:PROPERTIES:
=C2=A0:header-args: :flags -Wall
=C2=A0:END:
** bar
#+begin_src C :flags -lm
#+end_src

Now I want the code to be compiled with -Wall _and_ -lm.

Regards
hmw


--001a114c0cec72e2f30566c024dd--