From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ANN] Changes to link syntax Date: Fri, 15 Mar 2019 11:55:04 +0100 Message-ID: <87wol0tnjr.fsf@nicolasgoaziou.fr> References: <87sgvusl43.fsf@nicolasgoaziou.fr> <87h8c490eh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:60682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4n3f-0007to-W1 for emacs-orgmode@gnu.org; Fri, 15 Mar 2019 09:39:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4mqS-0002TG-GX for emacs-orgmode@gnu.org; Fri, 15 Mar 2019 09:25:57 -0400 Received: from mslow2.mail.gandi.net ([217.70.178.242]:59556) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4mqS-0002S6-6K for emacs-orgmode@gnu.org; Fri, 15 Mar 2019 09:25:56 -0400 Received: from relay7-d.mail.gandi.net (unknown [217.70.183.200]) by mslow2.mail.gandi.net (Postfix) with ESMTP id AC4753AAAF1 for ; Fri, 15 Mar 2019 10:55:35 +0000 (UTC) In-Reply-To: <87h8c490eh.fsf@gmail.com> (stardiviner's message of "Fri, 15 Mar 2019 13:23:02 +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: stardiviner Cc: emacs-orgmode@gnu.org Hello, stardiviner writes: > Hi, @Nicolas, will you release a method to update all existing Org > file links? This is not limited to file links. There is no method that can, with certainty, convert old syntax into the new one. More accurately, it is possible to convert them with: (org-link-escape (org-link-decode URI)) but in some cases, it may be difficult to tell when the URI should be decoded in the first place. I suggest to first try the linter on a document. Once we know it detects with a good ratio links to convert, we can write a wrapper to also convert them. > I don't know which special escaped characters need to be converted. %20, %25, %5B and %5D. Regards, -- Nicolas Goaziou