Browse Source

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>
Nicolas Goaziou 9 months ago
parent
commit
d4d681cc15
1 changed files with 1 additions and 4 deletions
  1. 1 4
      lisp/ox-publish.el

+ 1 - 4
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")