From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: Re: Concatenating header args Date: Thu, 08 Mar 2018 10:55:46 +0100 Message-ID: <874llq99i5.fsf@luisa.c0t0d0s0.de> References: <877eqpo8sf.fsf@luisa.c0t0d0s0.de> <871sgwjpme.fsf@luisa.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etsHD-0003sN-D1 for emacs-orgmode@gnu.org; Thu, 08 Mar 2018 04:55:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etsH8-0002RR-Ia for emacs-orgmode@gnu.org; Thu, 08 Mar 2018 04:55:55 -0500 Received: from mout.gmx.net ([212.227.15.19]:53821) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etsH8-0002Q7-7g for emacs-orgmode@gnu.org; Thu, 08 Mar 2018 04:55:50 -0500 Received: from stella.c0t0d0s0.de ([194.95.66.1]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MZkic-1fFOEn3YSM-00LZWy for ; Thu, 08 Mar 2018 10:55:47 +0100 Received: from Stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id 031E4C40B7 for ; Thu, 8 Mar 2018 10:55:47 +0100 (CET) In-Reply-To: <871sgwjpme.fsf@luisa.c0t0d0s0.de> (Michael Welle's message of "Wed, 07 Mar 2018 08:45:13 +0100") 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: emacs-orgmode@gnu.org Hello, Michael Welle 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