emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Michael Welle <mwe012008@gmx.net>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: Concatenating header args
Date: Tue, 6 Mar 2018 07:31:54 -0800	[thread overview]
Message-ID: <CAJ51ETqtT2yr9Q_6xdrUBJicSkRm4pBFNrOwJzym9rR6JL31uw@mail.gmail.com> (raw)
In-Reply-To: <877eqpo8sf.fsf@luisa.c0t0d0s0.de>

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

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 <mwe012008@gmx.net> 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
>
>

[-- Attachment #2: Type: text/html, Size: 1680 bytes --]

  reply	other threads:[~2018-03-06 15:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-06  9:25 Concatenating header args Michael Welle
2018-03-06 15:31 ` John Kitchin [this message]
2018-03-07  7:45   ` Michael Welle
2018-03-08  9:55     ` Michael Welle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ51ETqtT2yr9Q_6xdrUBJicSkRm4pBFNrOwJzym9rR6JL31uw@mail.gmail.com \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=mwe012008@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).