From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kai Tetzlaff Subject: Variable publishing-directory? Date: Mon, 15 Aug 2011 20:11:02 +0200 Message-ID: <7imxfapmtl.fsf@mack.tetzco.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt1cy-0004A6-IU for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 14:11:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qt1cx-0003GK-OV for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 14:11:08 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:54813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt1cx-0003GF-AY for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 14:11:07 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.tetzco.de (Postfix) with ESMTP id 4B0A914A0607 for ; Mon, 15 Aug 2011 20:11:04 +0200 (CEST) Received: from mail.tetzco.de ([127.0.0.1]) by localhost (mini.tetzco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u7Q5lWwUEmnm for ; Mon, 15 Aug 2011 20:11:03 +0200 (CEST) Received: from mack.tetzco.de (mack.tetzco.de [IPv6:2001:a60:f05d:1:226:bbff:fe03:b2e9]) by mail.tetzco.de (Postfix) with ESMTPS id 639BE14A05F1 for ; Mon, 15 Aug 2011 20:11:03 +0200 (CEST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain I'm using an org-mode publishing project in different locations and would like to set different (location dependent) values for the publishing-directory property (e.g. use different servers to upload published files). There might be a way to do that with the current org-mode which i just did not find. In that case, please let me know how. Otherwise the attached patch seems to provide the desired effect and it would be great if it could be added to org-mode. BR, Kai --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=eval-publishing-dir.patch Content-Description: allow variable publishing-dir diff --git a/lisp/org-publish.el b/lisp/org-publish.el index ccd2068..4ed2346 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -685,7 +685,7 @@ See `org-publish-projects'." (pub-dir (file-name-as-directory (file-truename - (or (plist-get project-plist :publishing-directory) + (or (eval (plist-get project-plist :publishing-directory)) (error "Project %s does not have :publishing-directory defined" (car project)))))) tmp-pub-dir) --=-=-=--