From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: A problem with publishing Date: Fri, 28 Mar 2014 05:44:00 +0100 Message-ID: <20140328054400.20eeb395@aga-netbook> References: <20140323220157.10c18f17@aga-netbook> <5f8833325ea105e503065127806f4be8@mail.rickster.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTOeF-0001Nx-VS for emacs-orgmode@gnu.org; Fri, 28 Mar 2014 00:44:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTOeB-0000hy-58 for emacs-orgmode@gnu.org; Fri, 28 Mar 2014 00:44:07 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:37950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTOeA-0000hp-V0 for emacs-orgmode@gnu.org; Fri, 28 Mar 2014 00:44:03 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 6BC1942087 for ; Fri, 28 Mar 2014 05:44:02 +0100 (CET) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m3JDU-RRFhQd for ; Fri, 28 Mar 2014 05:44:02 +0100 (CET) Received: from aga-netbook (99-234.echostar.pl [213.156.99.234]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 488CF42072 for ; Fri, 28 Mar 2014 05:44:02 +0100 (CET) In-Reply-To: <5f8833325ea105e503065127806f4be8@mail.rickster.com> 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 Dnia 2014-03-26, o godz. 09:26:15 Rick Frankel napisa=C5=82(a): > On 2014-03-23 17:01, Marcin Borkowski wrote: > > Hi list, > >=20 > > publishing doesn't work. I guess that I broke something;). May the > > source and publishing directories be the same? I have this in my > > init.el: > >=20 > > (setq org-publish-project-alist > > '(("fnis2014" > > :base-directory "~/directory" > > :publishing-directory "~/directory" > > :base-extension "org\\|css\\|jpg\\|png" > > :publishing-function org-reveal-export-to-html > > :completion-function (lambda () (compile "make install"))))) > >=20 > > The "make install" means just rsync'ing to a remote server. > >=20 > > When I "export" (C-c C-e R R) and then "publish" (C-c C-e P x) (or > > "M-x compile"), everything is ok. When I just "publish", changes > > seem not to be pushed to the remote server, and I'm left with some > > *Org export* process buffers. >=20 > My guess is that using *-export-to-html as the publishing function is > the culprit. There should/needs to be an org-reveal-publish-to-html > publishing function. I'm guessing the reason it works when you > manually export is that since the html file is up-to-date vis. the org > source, the code path bypasses that step (and just runs the completion > function). >=20 > If org-reveal doesn't have a publishing function, try (not tested): >=20 > (lambda (plist filename pubdir) > (org-publish-org-to 'reveal filename ".html" plist pubdir)) Thanks, I'll try it! > BTW, org-publish has built-in support for pushing to a remote server. > You can use a tramp url as the publishing-directory, bypassing the > completion function. I know, but I read in the manual that it may not be the fastest thing in the world. (In fact, I use a very simple Makefile, which in turn uses rsync, so it /might/ indeed be faster, not copying unnecessary stuff. Not sure whether Emacs+Tramp would do it.) > rick Thanks again, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University