[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Excluding folders in org-publish with :exclude regexp. Not working.
[O] Excluding folders in org-publish with :exclude regexp. Not working. Fix?
Tue, 3 Jan 2012 16:17:15 +0200
I need to exclude some folders when publishing to html via an org-publish
project definition. I create the project's alist as explained in the doc.
For example, the beginning of my org-publish-project-alist looks like this:
The above project "org" excludes all files named config.org.
If I try to enter any directory path in the :exclude regexp, it does not work.
I tried all sorts of combinations such as:
-- The entire directory path: "/Users/iani/org/subproj1/"
-- Wildcard: /Users/iani/org/subproj1/*
-- Another wildcard: /Users/iani/org/subproj1/*.org
-- Even another wildcard: ".*/config\\.org$" (just for testing, this should
exclude all config.org files again.
It seems that excluding directories, or including part of the path besides the
filename itself in the exclude property does not work.
I see a possibly related comment in function org-publish-get-base-files:
(org-publish-get-base-files-1 base-dir recurse match
;; FIXME distinguish exclude regexp
;; for skip-file and skip-dir?
I also had a look at the relevant function definition:
(defun org-publish-get-base-files-1 (...
But before spending some time trying to fix this I would like to ask if there
is some other provision for excluding directories in org-publish which I am not
Many thanks in advance,
|[Prev in Thread]
||[Next in Thread]|
- [O] Excluding folders in org-publish with :exclude regexp. Not working. Fix?,
Iannis Zannos <=