emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-publish doesn't republish if you delete the .html files
@ 2009-05-10 19:27 Daniel Clemente
  2009-05-12  8:30 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Clemente @ 2009-05-10 19:27 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-publish doesn't republish if you delete the .html files
  2009-05-10 19:27 org-publish doesn't republish if you delete the .html files Daniel Clemente
@ 2009-05-12  8:30 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-05-12  8:30 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: Org-mode ml


On May 10, 2009, at 9:27 PM, Daniel Clemente wrote:

>
> 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

One problem here is that org-publish does not really know
the name of the file that will be produced, because the
publishing function can be freely set by the user and
may, for example, produce several files in one go.

I see very well how useful this checking would be, and it
could be done readily for the built-in publishing functions.
But I am not yet sure how this is to be done.

Workaround:  Use a prefix argument when publishing, this will
force republishing of all files.

HTH

- Carsten

>
>
> 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
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-12  8:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-10 19:27 org-publish doesn't republish if you delete the .html files Daniel Clemente
2009-05-12  8:30 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).