Hello,

Michael Welle <mwe012...@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 via email to