From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Let Org-mode babel file result support relative link type by using org-link-file-path-type Date: Sun, 12 Mar 2017 14:14:21 +0100 Message-ID: <87efy2ljrm.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cn3KT-0008RO-P7 for emacs-orgmode@gnu.org; Sun, 12 Mar 2017 09:14:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cn3KQ-0000PW-Kn for emacs-orgmode@gnu.org; Sun, 12 Mar 2017 09:14:33 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:46265) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cn3KQ-0000PD-Dr for emacs-orgmode@gnu.org; Sun, 12 Mar 2017 09:14:30 -0400 In-Reply-To: (numbchild@gmail.com's message of "Sun, 12 Mar 2017 12:22:53 +0800") 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: "numbchild@gmail.com" Cc: Org-mode Hello, "numbchild@gmail.com" writes: > Let Org-mode babel file result support relative (adaptive) link type by > using `org-link-file-path-type`. > > This also can solve static site generator extensions (like `ob-blog.el` > etc) image link path issue. > > Also better if user changed parent directory name, those links will have to > updated too. But if `adaptive` `org-link-file-path-type` will solve this > problem. > > So please let Org-mode babel header arguments `:results file :file > "filename.png"` use `org-link-file-path-type` variable. It sounds interesting. Could you be more specific about the specifications of your suggestion. For example, what happens when :output-dir is set, or when :file already provides some directory part? What part takes precedence over the other? Better, could you show some examples, or some tests? Regards, -- Nicolas Goaziou