From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: exclude symlinked directory from publishing [9.1.6 (9.1.6-57-gec8590-elpa @ /home/michel/.emacs.d/elpa/org-20180219/)] Date: Sun, 11 Mar 2018 23:09:26 +0100 Message-ID: <87fu56e02x.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ev99m-0005gg-Fb for emacs-orgmode@gnu.org; Sun, 11 Mar 2018 18:09:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ev99l-0004T5-L8 for emacs-orgmode@gnu.org; Sun, 11 Mar 2018 18:09:30 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:36489) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ev99l-0004SV-Eg for emacs-orgmode@gnu.org; Sun, 11 Mar 2018 18:09:29 -0400 In-Reply-To: (Michel Damiens's message of "Tue, 6 Mar 2018 09:21:36 +0100") 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" To: Michel Damiens Cc: emacs-orgmode@gnu.org Hello, Michel Damiens writes: > When publishing (with org-publish) I'd like to exclude a subdirectory : > in fact it is a symlink (named lib) to a directory outside of the tree to be > published > > For example with this tree : > /media/DATA/ > lib --> other directory > other pdf files > > in org-publish-project-alist I tried > :exclude "lib$" This cannot work, as the regexp is matched against a file name, not a directory. > or :exclude ".*lib/.*" This one works. I cannot reproduce your issue. Regards, -- Nicolas Goaziou