From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: attachment: link type export to HTML invalid attach dir Date: Mon, 17 Feb 2020 00:58:17 +0100 Message-ID: <87k14mjd9i.fsf@gnu.org> References: <87pnfhrob4.fsf@nicolasgoaziou.fr> <871rrvrw0b.fsf@nicolasgoaziou.fr> <87muairkam.fsf@nicolasgoaziou.fr> <87y2th0yc7.fsf@nicolasgoaziou.fr> <878sle1ng9.fsf@nicolasgoaziou.fr> <875zgausnb.fsf@nicolasgoaziou.fr> <87o8u2tbhg.fsf@nicolasgoaziou.fr> <87zhdlctsm.fsf@bzg.fr> <87a75lt7nc.fsf@nicolasgoaziou.fr> <87d0ag29kk.fsf@gnu.org> <87h7zrradl.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58578) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3Tns-0002BB-1C for emacs-orgmode@gnu.org; Sun, 16 Feb 2020 18:58:24 -0500 In-Reply-To: <87h7zrradl.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 15 Feb 2020 19:08:54 +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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Gustav =?utf-8?Q?Wikstr=C3=B6m?= , "emacs-orgmode@gnu.org" Hi Nicolas, Nicolas Goaziou writes: > This is the first part of the suggested changes. These do not touch > attachment modifications, but rather improve the tooling in "ol.el". Thanks for working on this--and Kyle for the careful review. > `org-link-parameters' accepts a new property, :open, which is > like :follow, but function installed there is called with a universal > prefix argument. I'm not sure why the distinction between :open and :follow is needed in the context of the discussion for exporting attachments: is it because attachment need to be "open", not just followed? > Also, :export function is called with a fourth argument, the export info > channel. I updated the export back-ends to handle the new signature, and > provided a compatibility layers for link libraries in the wild, which > may still use three arguments. > > There are two new tools: `org-link-open-as-file' and > `org-export-link-as-file'. They can be used as helper functions for, > respectively, :open and :export functions. > WDYT? LGTM, feel free to go ahead when you want. Thanks, -- Bastien