From mboxrd@z Thu Jan 1 00:00:00 1970 From: steckerhalter Subject: Issue with commit 6062f9e in ox-publish Date: Tue, 25 Mar 2014 08:57:21 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043bdf9ca9cc1d04f569b374 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSMEk-0002tx-Ix for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 03:57:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSMEd-0006Vo-9A for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 03:57:30 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:62067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSMEd-0006Vi-37 for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 03:57:23 -0400 Received: by mail-wi0-f170.google.com with SMTP id bs8so3151743wib.5 for ; Tue, 25 Mar 2014 00:57:21 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --f46d043bdf9ca9cc1d04f569b374 Content-Type: text/plain; charset=ISO-8859-1 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? cheers steckerhalter --f46d043bdf9ca9cc1d04f569b374 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
This change:

@@ -1169,5 +1168,10 @= @ the file including them will be republished as well."
- (while (re-search-forward
- "^#\\+INCLUD= E:[ \t]+\"\\([^\t\n\r\"]*\\)\"[ \t]*.*$" nil t)
- =A0(let* ((included= -file (expand-file-name (match-string 1))))
- =A0 =A0(add-to-li= st 'included-files-ctime
- (org-publish-cache-ctime-of-src included-file) t))))
+ (while (re-searc= h-forward "^[ \t]*#\\+INCLUDE:" nil t)
+ =A0(let* ((elemen= t (org-element-at-point))
+ (included-file
+ =A0(and (eq (org-element-type element) 'keyword)
+ =A0 =A0 =A0 (org= -string-nw-p (org-element-property :value element)))))
+ =A0 =A0(when included-file
=
+ =A0 =A0 =A0(add-t= o-list 'included-files-ctime
+ =A0 (org-publis= h-cache-ctime-of-src
+= =A0 =A0(expand-file-name included-file))
+ =A0 t)))))

causes an error for me:

=
org-publish-cache-ctime-of-src: No such file: "/home/user/org-mod= e-blog/posts/"../elisp/org-mode-blog-setup.el" src emacs-lisp&quo= t;

When I revert the commit I do not get an error.

Probably it's just that it does not strip the &= quot;src emacs-lisp" part now?

cheers
steckerhalter
--f46d043bdf9ca9cc1d04f569b374--