emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] org-publish: Fix regexp for include files


From: Jon Anders Skorpen
Subject: [O] [PATCH] org-publish: Fix regexp for include files
Date: Sat, 16 Jul 2011 12:22:07 +0000

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]