emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Welle <mwe012008@gmx.net>
To: emacs-orgmode@gnu.org
Subject: Re: Concatenating header args
Date: Thu, 08 Mar 2018 10:55:46 +0100	[thread overview]
Message-ID: <874llq99i5.fsf@luisa.c0t0d0s0.de> (raw)
In-Reply-To: <871sgwjpme.fsf@luisa.c0t0d0s0.de> (Michael Welle's message of "Wed, 07 Mar 2018 08:45:13 +0100")

Hello,

Michael Welle <mwe012008@gmx.net> writes:
> Hm, the property values can be functions that get evaluated to get the
> actual property values, can't it? I'm not sure though if something like
> :flags (get-em "flags" '("-more" "-values")) is so much nicer to write.
> Maybe it is, esp. if you want to change the base flags for a ton of
> items. Today is teaching tuesday (even if it's wednesday ;)), so I'm a
> bit short on time. But I will try that approach later this week and see
> where that leads to.
not too nice, but works good enough for me ;).

(defun hmw/org-prop-append(prop value)
  (format "%s %s" value (cdr (assq prop
                                   (car (org-babel-params-from-properties))))))
(defalias 'A 'hmw/org-prop-append)


* foo
 :PROPERTIES:
 :header-args: :flags -Wall
 :END:
** bar

#+begin_src C :flags (A :flags "-lm")
#+end_src

Regards
hmw

      reply	other threads:[~2018-03-08  9:55 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
2018-03-07  7:45   ` Michael Welle
2018-03-08  9:55     ` Michael Welle [this message]

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=874llq99i5.fsf@luisa.c0t0d0s0.de \
    --to=mwe012008@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    /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).