From d4d681cc15be5e32185f5705a55c79f82f8d3245 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 10 Feb 2019 13:57:40 +0100 Subject: [PATCH] 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 --- lisp/ox-publish.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index b5c283f61..5c6ad94c9 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -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")