From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jay Kamat Subject: [PATCH] Export of irc links in ox-html Date: Sun, 24 Sep 2017 01:18:52 -0400 Message-ID: <8760c8r7wj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvzJj-0004mq-Sw for emacs-orgmode@gnu.org; Sun, 24 Sep 2017 01:19:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvzJg-00023b-O8 for emacs-orgmode@gnu.org; Sun, 24 Sep 2017 01:18:59 -0400 Received: from mail-yw0-x234.google.com ([2607:f8b0:4002:c05::234]:56757) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvzJg-00021M-Hm for emacs-orgmode@gnu.org; Sun, 24 Sep 2017 01:18:56 -0400 Received: by mail-yw0-x234.google.com with SMTP id w22so2929934ywa.13 for ; Sat, 23 Sep 2017 22:18:55 -0700 (PDT) Received: from laythe (res380d-128-61-81-32.res.gatech.edu. [128.61.81.32]) by smtp.gmail.com with ESMTPSA id f138sm1634659ywb.14.2017.09.23.22.18.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Sep 2017 22:18:53 -0700 (PDT) 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi! IRC links in ox-html are currently broken. 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. After this tiny patch, it exports to: Irc link which tells browsers such as firefox to open links in irc clients. Let me know if you find any issues! -Jay --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-ox-html.el-Fix-irc-links-exporting-to-link-to-local-.patch >From fa1a5ad3bf63158775ffa8ab3de37fb056103ab4 Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Sun, 24 Sep 2017 01:11:42 -0400 Subject: [PATCH] ox-html.el: Fix irc links exporting to link to local files * lisp/ox-html.el: Add "irc" to special link types which are exported as their link type and path separated by ':', so that browser irc content handlers work properly. --- lisp/ox-html.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index d91ca73622..8756cda7e5 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2973,7 +2973,7 @@ INFO is a plist holding contextual information. See (desc (org-string-nw-p desc)) (path (cond - ((member type '("http" "https" "ftp" "mailto" "news")) + ((member type '("http" "https" "ftp" "mailto" "news" "irc")) (url-encode-url (org-link-unescape (concat type ":" raw-path)))) ((string= type "file") ;; Treat links to ".org" files as ".html", if needed. -- 2.11.0 --=-=-=--