From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: org-publish doesn't republish if you delete the .html files Date: Sun, 10 May 2009 21:27:53 +0200 Message-ID: <87ab5koj0m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3EgU-0007yX-V1 for emacs-orgmode@gnu.org; Sun, 10 May 2009 15:27:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3EgQ-0007uK-CL for emacs-orgmode@gnu.org; Sun, 10 May 2009 15:27:38 -0400 Received: from [199.232.76.173] (port=37922 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3EgQ-0007uB-6z for emacs-orgmode@gnu.org; Sun, 10 May 2009 15:27:34 -0400 Received: from mail-fx0-f169.google.com ([209.85.220.169]:58546) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3EgP-0006lS-RF for emacs-orgmode@gnu.org; Sun, 10 May 2009 15:27:34 -0400 Received: by fxm17 with SMTP id 17so2444899fxm.42 for ; Sun, 10 May 2009 12:27:33 -0700 (PDT) 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: Org-mode ml Hi; with org 6.26trans: 1. Publish a project you have configured with org-publish, concretely one that places the .html files locally beside the .org files. 2. While exporting, Org creates its own data in ~/.org-timestamps to cache things 3. Delete the new .html which have been created 4. Try to publish the same project again 5. Org-publish skips the file: Skipping unmodified file /home/dc/patata/index.org I think that most people would expect the .html files to be created again. Now users are expected to delete ~/.org-timestamps manually, which is not obvious. Org could check for the .html files first, and if they are not present, always create them. Even if this check involves access to a remote server, I think it is worth it at access time, since it assures republishing (and otherwise, you get nothing). Full event log: ,---- | Saving file /home/dc/patata/index.html... | Wrote /home/dc/patata/index.html | Exporting... done | Saving file /home/dc/.org-timestamps/X24bafcf2c400ea6b5088e9afd58c590112bccd0c... | Wrote /home/dc/.org-timestamps/X24bafcf2c400ea6b5088e9afd58c590112bccd0c | Delete * [2 files] (y or n) | 1 of 2 deletions | 2 of 2 deletions | 2 deletions done | Select command: | Skipping unmodified file /home/dc/patata/temas.org | Skipping unmodified file /home/dc/patata/index.org | Updating buffer list...done | Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help | Mark saved where search started | Mark set `---- Thanks, Daniel