From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Regression: org-translate-link doesn't work correctly in Org 8.3 Date: Wed, 19 Aug 2015 12:39:12 +0200 Message-ID: <877fora7fz.fsf@nicolasgoaziou.fr> References: <87bne3mv78.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS0kT-0006Cg-6h for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 06:37:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZS0kS-0001oh-8d for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 06:37:37 -0400 In-Reply-To: <87bne3mv78.fsf@gnu.org> (Bastien's message of "Wed, 19 Aug 2015 12:25:15 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Sergei Nosov , emacs-orgmode@gnu.org Hello, Bastien writes: > Hi Sergei, > > wild guess: what if you simply make the ":" optional like this: > > (string-match "\\([a-zA-Z0-9]+\\):\\(.*\\)" s) > > (string-match "\\([a-zA-Z0-9]+\\):?\\(.*\\)" s) > ^^^ > > ? I think `org-translate-link' should be updated to provide correct type, including internal ones, to `org-link-translation-function'. E.g., http://orgmode.org => "http" #something => "custom-id" (ref:line) => "coderef" whatever => "fuzzy" At least, this would be consistent with the parser. Regards, -- Nicolas Goaziou