From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to keep correct filepaths when using the #+INCLUDE derivative? Date: Sun, 18 Mar 2018 16:15:58 +0100 Message-ID: <87r2ohct3l.fsf@nicolasgoaziou.fr> References: <87woyxhuk2.fsf@nicolasgoaziou.fr> <87o9k7ir3i.fsf@nicolasgoaziou.fr> <87h8pzifk7.fsf@nicolasgoaziou.fr> <878tbahrxv.fsf@nicolasgoaziou.fr> <87y3j537uu.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exa2Z-0003x6-3h for emacs-orgmode@gnu.org; Sun, 18 Mar 2018 11:16:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exa2V-0000om-3v for emacs-orgmode@gnu.org; Sun, 18 Mar 2018 11:16:07 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:37471) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1exa2U-0000nv-T7 for emacs-orgmode@gnu.org; Sun, 18 Mar 2018 11:16:03 -0400 In-Reply-To: (Daniel P. Gomez's message of "Sat, 10 Mar 2018 12:28:39 +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: "Daniel P. Gomez" Cc: emacs-orgmode@gnu.org Hello, "Daniel P. Gomez" writes: > I've fixed the implementation of `org-export--prepare-file-contents` > so > that links are relative to the included file. A patch is attached. > > I've also created two org files in the test examples directory: > "includer-with-links.org" and "subdir/includee-with-links.org". My > goal > was to add a test in "test-ox.el" `test-org-export/expand-include` > that > checks whether, after exporting the "includer-with-links.org" file to > Org, the headings *Source and *Target are the same. > > I did not figure out how to do this cleanly, so any help implementing > the test itself would be greatly appreciated. I applied your patch and wrote a few tests. Let me know if it works for you. BTW, what's your status wrt FSF papers? I don't remember if you have signed them already. Thank you! Regards, -- Nicolas Goaziou 0x80A93738