[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Issue with commit 6062f9e in ox-publish
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Issue with commit 6062f9e in ox-publish |
Date: |
Tue, 25 Mar 2014 10:08:42 +0100 |
Hello,
steckerhalter <address@hidden> writes:
> This change:
>
> @@ -1169,5 +1168,10 @@ the file including them will be republished as well."
> - (while (re-search-forward
> - "^#\\+INCLUDE:[ \t]+\"\\([^\t\n\r\"]*\\)\"[ \t]*.*$" nil t)
> - (let* ((included-file (expand-file-name (match-string 1))))
> - (add-to-list 'included-files-ctime
> - (org-publish-cache-ctime-of-src included-file) t))))
> + (while (re-search-forward "^[ \t]*#\\+INCLUDE:" nil t)
> + (let* ((element (org-element-at-point))
> + (included-file
> + (and (eq (org-element-type element) 'keyword)
> + (org-string-nw-p (org-element-property :value element)))))
> + (when included-file
> + (add-to-list 'included-files-ctime
> + (org-publish-cache-ctime-of-src
> + (expand-file-name included-file))
> + t)))))
>
> causes an error for me:
>
> org-publish-cache-ctime-of-src: No such file:
> "/home/user/org-mode-blog/posts/"../elisp/org-mode-blog-setup.el" src
> emacs-lisp"
>
> When I revert the commit I do not get an error.
>
> Probably it's just that it does not strip the "src emacs-lisp" part
> now?
Good catch. This should be fixed. Thank you for reporting it.
Regards,
--
Nicolas Goaziou