forked from mirrors/org-mode
org-publish.el: fix bug in `org-publish-cache-file-needs-publishing'.
* install/git/org-mode/lisp/org-publish.el (org-publish-cache-file-needs-publishing): only check against .org files.
This commit is contained in:
parent
7a88eaec29
commit
382e69ee6c
|
@ -1105,12 +1105,13 @@ so that the file including them will be republished as well."
|
||||||
(pstamp (org-publish-cache-get key))
|
(pstamp (org-publish-cache-get key))
|
||||||
included-files-ctime)
|
included-files-ctime)
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(find-file (expand-file-name filename))
|
(when (equal (file-name-extension filename) "org")
|
||||||
(goto-char (point-min))
|
(find-file (expand-file-name filename))
|
||||||
(while (re-search-forward "^#\\+INCLUDE: \\(.+\\)[ ^\t]*$" nil t)
|
(goto-char (point-min))
|
||||||
(let* ((included-file (expand-file-name (match-string 1))))
|
(while (re-search-forward "^#\\+INCLUDE: \\(.+\\)[ ^\t]*$" nil t)
|
||||||
(add-to-list 'included-files-ctime
|
(let* ((included-file (expand-file-name (match-string 1))))
|
||||||
(org-publish-cache-ctime-of-src included-file) t))))
|
(add-to-list 'included-files-ctime
|
||||||
|
(org-publish-cache-ctime-of-src included-file) t)))))
|
||||||
(if (null pstamp)
|
(if (null pstamp)
|
||||||
t
|
t
|
||||||
(let ((ctime (org-publish-cache-ctime-of-src filename)))
|
(let ((ctime (org-publish-cache-ctime-of-src filename)))
|
||||||
|
|
Loading…
Reference in a new issue