From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Anders Skorpen Subject: [PATCH] org-publish: Fix regexp for include files Date: Sat, 16 Jul 2011 12:22:07 +0000 Message-ID: <1310818927-25567-1-git-send-email-jonas@ifi.uio.no> Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qi3ui-0007Hs-Hy for emacs-orgmode@gnu.org; Sat, 16 Jul 2011 08:24:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qi3ug-0007i6-CD for emacs-orgmode@gnu.org; Sat, 16 Jul 2011 08:24:08 -0400 Received: from mail-out1.uio.no ([129.240.10.57]:37538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qi3uf-0007hY-Ub for emacs-orgmode@gnu.org; Sat, 16 Jul 2011 08:24:06 -0400 Received: from mail-mx2.uio.no ([129.240.10.30]) by mail-out1.uio.no with esmtp (Exim 4.75) (envelope-from ) id 1Qi3ud-0002Zm-Ho for emacs-orgmode@gnu.org; Sat, 16 Jul 2011 14:24:03 +0200 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 Cc: Jon Anders Skorpen * org-publish.el (org-publish-cache-file-needs-publishing): Regexp did not find includes with double quoted file names. TINYCHANGE --- lisp/org-publish.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-publish.el b/lisp/org-publish.el index b8e932d..9654a6d 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -1108,7 +1108,7 @@ so that the file including them will be republished as well." (when (equal (file-name-extension filename) "org") (find-file (expand-file-name filename)) (goto-char (point-min)) - (while (re-search-forward "^#\\+INCLUDE: \\(.+\\)[ ^\t]*$" nil t) + (while (re-search-forward "^#\\+INCLUDE:[ \t]+\"?\\([^ \t\"]*\\)\"?[ \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))))) -- 1.7.4.1