emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Concatenating header args


From: Michael Welle
Subject: Re: [O] Concatenating header args
Date: Thu, 08 Mar 2018 10:55:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3.50 (gnu/linux)

Hello,

Michael Welle <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]