0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

ox-publish: Fix previous patch

* lisp/ox-publish.el (org-publish-cache-file-needs-publishing): Remove
  unnecessary code, since `time-less-p' also handles integers.

Reported-by: Paul Eggert <eggert@cs.ucla.edu>
<http://lists.gnu.org/r/emacs-orgmode/2019-02/msg00074.html>
This commit is contained in:
Nicolas Goaziou 2019-02-10 13:57:40 +01:00
parent 9b3ca51fa4
commit d4d681cc15

View file

@ -1285,10 +1285,7 @@ the file including them will be republished as well."
(error
"`org-publish-cache-file-needs-publishing' called, but no cache present"))
(let* ((key (org-publish-timestamp-filename filename pub-dir pub-func))
(pstamp (pcase (org-publish-cache-get key)
;; Old format, convert it back to a time value.
((and stamp (pred wholenump)) (seconds-to-time stamp))
(stamp stamp)))
(pstamp (org-publish-cache-get key))
(org-inhibit-startup t)
included-files-ctime)
(when (equal (file-name-extension filename) "org")