From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-publish not publishing changed files Date: Fri, 18 Mar 2011 21:33:04 -0400 Message-ID: <3366.1300498384@alphaville.dokosmarshall.org> References: <20110319011622.GA11088@neko> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=33628 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0l2s-0001Df-0L for emacs-orgmode@gnu.org; Fri, 18 Mar 2011 21:33:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0l2q-00007s-ME for emacs-orgmode@gnu.org; Fri, 18 Mar 2011 21:33:33 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:55117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0l2q-00007m-Iz for emacs-orgmode@gnu.org; Fri, 18 Mar 2011 21:33:32 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LIA00EW76Z4VV60@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 18 Mar 2011 20:33:17 -0500 (CDT) In-reply-to: Message from Aidan Gauland of "Sat, 19 Mar 2011 14:16:23 +1300." <20110319011622.GA11088@neko> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: nicholas.dokos@hp.com Aidan Gauland wrote: > Hi, > > I use org-mode for my website, and I've noticed that when I go to > publish the website, none of the files I have just edited are updated > in the publishing directory. I have no idea why. Here is the elisp I > evaluate to publish my website. > > (setq > org-publish-project-alist > '(("aidalgolland-orgfiles" > :base-directory "~/doc-aidan/aidalgolland/main/" > :publishing-directory "/ssh:aidan@nathan7.eu:public_html/aidalgolland/" > :publishing-function org-publish-org-to-html > :recursive t > :base-extension "org" > :section-numbers nil > :table-of-contents nil > :creator-info nil > :language "en" > :author "Aidan Gauland" > :style "" > :auto-preamble t > :auto-postamble t) > > ("aidalgolland-static" > :base-directory "~/doc-aidan/aidalgolland/main/" > :publishing-directory "/ssh:aidan@nathan7.eu:public_html/aidalgolland/" > :publishing-function org-publish-attachment > :recursive t > :base-extension "css\\|gz\\|bz2\\|lzma\\|jpg\\|gif\\|png\\|atom") > > ("aidalgolland" :components ("aidalgolland-orgfiles" "aidalgolland-static")))) > > (org-babel-lob-ingest "~/doc-aidan/aidalgolland/babel-lib.org") > (org-publish "aidalgolland") > > (makunbound 'org-publish-project-alist) > > Can anyone help me with this? > > Thanks, > Aidan Gauland org uses timestamps to figure out which files need publishing (see section 13.4 of the Org manual) and they may have gotten curdled somehow. You can force publication by giving a second argument to org-publish (if you called it interactively, you could do that by giving it a prefix arg): (org-publish "aidalgolland" t) Or you can try getting rid of the timestamps (they are stored in the directory named in the variable org-publish-timestamp-directory (by default "~/.org-timestamps/") and publish again. If you can figure out *why* they got out of sync, that would be a bonus and worth a post here, particularly if you can identify a bug in the code. Nick