From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Variable publishing-directory? (resent with patch as attachment) Date: Sat, 29 Oct 2011 13:55:44 +0200 Message-ID: <87k47o811b.fsf@gnu.org> References: <7imxfapmtl.fsf@mack.tetzco.de> <87wrebky5v.fsf@altern.org> <7ipqk3qfxn.fsf@mack.tetzco.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK7Uy-0005V0-ET for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 07:54:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK7Ux-0002VN-DZ for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 07:54:52 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:62558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK7Ux-0002VH-7D for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 07:54:51 -0400 Received: by wyg34 with SMTP id 34so5663679wyg.0 for ; Sat, 29 Oct 2011 04:54:50 -0700 (PDT) In-Reply-To: <7ipqk3qfxn.fsf@mack.tetzco.de> (Kai Tetzlaff's message of "Thu, 18 Aug 2011 10:17:56 +0200") 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 Hi Kay, Kai Tetzlaff writes: > Here is an example: At home, i publish to a local directory > (:publishing-directory "~/tmp/publish-test") but at work i would like to > publish directly to a webserver (:publishing-directory > "/plinkx:doxydoc:~/public_html/publish-test" - this is on w32, using > tramps PuTTY/plink). To avoid having to change the definition of the > publishing project when i change locations i would like to construct the > actual value of :publishing-directory by calling a function: > > ("publishing-dir-test" > :base-directory "~/Documents/Work/RS" > :recursive t > :base-extension "org" > :exclude-tags ("intern") > :publishing-directory '(expand-file-name "publish-test" kt:org-default-publishing-dir) > :publishing-function org-publish-org-to-html) > > Depending on the location i'm in, 'kt:org-default-publishing-dir' would > be set to either "~/tmp" or "/plinkx:doxydoc:~/public_html". Without the > patch, the example above does not work as the value of > :publishing-directory does not get evaluated. > >> Also, please try to send git patch using these conventions: >> http://orgmode.org/worg/org-contribute.html#sec-5 >> >> Thanks a lot! > > Thanks for the hint. I've attached a revised version of the patch which > includes a changelog/commit msg - i hope that works for you. Thanks for the detailed explanations -- for the record, this patch has been applied a while ago. Thanks, -- Bastien