From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michel Damiens Subject: Bug: exclude symlinked directory from publishing [9.1.6 (9.1.6-57-gec8590-elpa @ /home/michel/.emacs.d/elpa/org-20180219/)] Date: Tue, 6 Mar 2018 09:21:36 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000057f7ce0566ba2314" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1et7rN-0000nu-Co for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 03:22:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et7rM-0005aN-70 for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 03:22:09 -0500 Received: from mail-pl0-x22e.google.com ([2607:f8b0:400e:c01::22e]:33702) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1et7rM-0005Yx-0S for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 03:22:08 -0500 Received: by mail-pl0-x22e.google.com with SMTP id c11-v6so11461416plo.0 for ; Tue, 06 Mar 2018 00:22:07 -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" To: emacs-orgmode@gnu.org --00000000000057f7ce0566ba2314 Content-Type: text/plain; charset="UTF-8" Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Hello, 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$" or :exclude ".*lib/.*" org-publish-attachment correctly treats "other pdf files" but also publish all pdf files contained in "other directory" Thanks for your help --00000000000057f7ce0566ba2314 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Remember to cover the basics, that is, what you expect= ed to happen and
what in fact did happen.=C2=A0 You don't know how t= o make a good report?=C2=A0 See

=C2=A0 =C2=A0 =C2=A0https://orgmode.org/manual/Fe= edback.html#Feedback

Your bug report will be posted to the Org m= ailing list.
-----------------------------------------------------------= -------------

Hello,

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 wi= th this tree :
/media/DATA/
=C2=A0=C2=A0=C2=A0 lib --> other direc= tory
=C2=A0 =C2=A0 other pdf files

in org-publish-project-alist I= tried
:exclude "lib$"
or :exclude ".*lib/.*"
=
org-publish-attachment correctly treats "other pdf files"
= but also publish all pdf files contained in "other directory"
=
Thanks for your help

--00000000000057f7ce0566ba2314-- 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