From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Export of irc links in ox-html Date: Sun, 24 Sep 2017 09:20:57 +0200 Message-ID: <87tvzs8sva.fsf@nicolasgoaziou.fr> References: <8760c8r7wj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dw1Dw-0002Re-A9 for emacs-orgmode@gnu.org; Sun, 24 Sep 2017 03:21:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dw1Dr-0003YC-9j for emacs-orgmode@gnu.org; Sun, 24 Sep 2017 03:21:08 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:42646) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dw1Dr-0003XH-3j for emacs-orgmode@gnu.org; Sun, 24 Sep 2017 03:21:03 -0400 In-Reply-To: <8760c8r7wj.fsf@gmail.com> (Jay Kamat's message of "Sun, 24 Sep 2017 01:18:52 -0400") 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: Jay Kamat Cc: emacs-orgmode@gnu.org Hello, Jay Kamat writes: > IRC links in ox-html are currently broken. They are not handled, which is slightly different. > There exists a special 'irc' > content handler on the web, telling browsers to open an irc link in an > external irc client. The format for such links seems identical to org > (irc:irc.freenode.net/user). > > Previously links such as: > > [[irc:irc.freenode.net/test][Irc link]] > > Would export to > > Irc link > > in ox-html. The proper fix would be to patch "org-irc.el" and add an export function there. "irc" links are not default links in Org, so there is no reason to hard-code them in "ox-html.el". You can look into `org-info-export' in "org-info.el", which is an example on how optional link types are handled. Thank you! Regards, -- Nicolas Goaziou