From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aidan Gauland Subject: Re: [Patch] Bug: Inconsistency with org-publish-attachment Date: Fri, 17 Sep 2010 20:21:42 +0000 (UTC) Message-ID: References: <20100915021535.GA19762@dimension8.tehua.net> <87tylrgfin.fsf@gmx.de> <87eicuhbq5.fsf@gmx.de> <20100916031504.GA5117@dimension8.tehua.net> <87d3sdswqe.fsf_-_@gmx.de> <878w31qpfn.fsf@gmx.de> <87zkvgpw5w.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=36125 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwhRi-0002jJ-Em for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 16:22:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwhRV-0007sr-Fu for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 16:21:58 -0400 Received: from lo.gmane.org ([80.91.229.12]:49098) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwhRV-0007se-4l for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 16:21:57 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OwhRR-0007id-Md for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 22:21:53 +0200 Received: from 114-134-7-235.rurallink.co.nz ([114.134.7.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Sep 2010 22:21:53 +0200 Received: from aidalgol by 114-134-7-235.rurallink.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Sep 2010 22:21:53 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sebastian Rose gmx.de> writes: > did you revert the previous patch? The second patch was against master > again. I ran git reset --hard then applied the second patch. > I changed to a subdirectory of my :base-directory (here $BASE): > > $ cd ${BASE}/subdirectory > $ cp ~/images/first.jpg . # a simple image > $ ln -s ~/images/second.jpg # a link to an image > $ ln -s ~/images/screenshots/ # a link to a directory > > When exporting, I get this tree in :publishing-directory ($PUB): > > $PUB/ > |-- subdirectory/ > | |-- first.jpg > | |-- second.jpg > | `-- screenshots/ > | |-- some.png > | `-- other.png > > which is what you expected, is that right? Yes, that's what I expected. What I'm getting is a little different. $PUB/ `-- subdirectory/ |-- screenshots/ | `-- subdirectory/ | `-- screenshots/ | |-- other.png | `-- some.png `-- subdirectory/ |-- first.jpg |-- second.jpg This is how the project is defined... (setq org-publish-project-alist '(("static" :base-directory "~/org-bug/" :publishing-directory "~/org-bug-pub/" :publishing-function org-publish-attachment :recursive t :base-extension "css\\|gz\\|bz\\|lzma\\|jpg\\|gif\\|png"))) And published with this sexp. (org-publish "static") Perhaps the discrepancy between our setups is git commit (not sure if I'm using the right terms there)? git log shows 878d94b47225729bfffaca9c57a5bdeb344a8ffb at the top of its output. Thanks for your help! --Aidan