From mboxrd@z Thu Jan 1 00:00:00 1970 From: Iannis Zannos Subject: Excluding folders in org-publish with :exclude regexp. Not working. Fix? Date: Tue, 3 Jan 2012 16:17:15 +0200 Message-ID: <6125CB61-75BB-41F1-BDBA-6BE3AAE89DC1@gmail.com> Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ri5B7-0002Mc-Sy for emacs-orgmode@gnu.org; Tue, 03 Jan 2012 09:17:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ri5B3-0002yJ-Ll for emacs-orgmode@gnu.org; Tue, 03 Jan 2012 09:17:25 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:43052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ri5B3-0002yC-GY for emacs-orgmode@gnu.org; Tue, 03 Jan 2012 09:17:21 -0500 Received: by wibhq12 with SMTP id hq12so12283657wib.0 for ; Tue, 03 Jan 2012 06:17:19 -0800 (PST) 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 Hello,=20 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.=20 For example, the beginning of my org-publish-project-alist looks like = this:=20 (("org"=20 :base-directory "/Users/iani/org/"=20 :publishing-directory "/Users/iani/org/html/"=20 :base-extension "org"=20 :exclude "config.org" ;; etc.=20 ) ;; etc ) The above project "org" excludes all files named config.org.=20 HOWEVER:=20 If I try to enter any directory path in the :exclude regexp, it does not = work. I tried all sorts of combinations such as:=20 -- 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.=20 It seems that excluding directories, or including part of the path = besides the filename itself in the exclude property does not work.=20 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? exclude-regexp exclude-regexp) I also had a look at the relevant function definition:=20 (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 aware of. Many thanks in advance,=20 Iannis Zannos