From mboxrd@z Thu Jan 1 00:00:00 1970 From: ""@mysql1.xlhost.de Subject: [PATCH] Don't add url type if link is relative. Date: Sat, 22 May 2010 17:18:29 +0200 Message-ID: <26585.4739388034$1274541719@news.gmane.org> References: <9D6CA50A-E027-409F-BA0A-70175CD01F5D@uva.nl> Return-path: Received: from [140.186.70.92] (port=38411 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFqU0-0007eD-Le for emacs-orgmode@gnu.org; Sat, 22 May 2010 11:19:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFqTz-0000mE-Kh for emacs-orgmode@gnu.org; Sat, 22 May 2010 11:19:24 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:49286) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFqTz-0000m7-ED for emacs-orgmode@gnu.org; Sat, 22 May 2010 11:19:23 -0400 In-Reply-To: <9D6CA50A-E027-409F-BA0A-70175CD01F5D@uva.nl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org From: David Maus --- lisp/ChangeLog | 3 +++ lisp/org-html.el | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b3a3529..1bbb4be 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-05-22 David Maus + * org-html.el (org-html-make-link): Don't add url type if link + is relative. + * org-w3m.el (org-w3m-copy-for-org-mode) (org-w3m-get-next-link-start, org-w3m-get-prev-link-start): Get text property directly, not using macro `w3m-anchor'. diff --git a/lisp/org-html.el b/lisp/org-html.el index d5f4775..221cbf6 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -640,7 +640,7 @@ MAY-INLINE-P allows inlining it as an image." (setq thefile (let ((str (org-export-html-format-href thefile))) - (if type + (if (and type (string-match-p "^//" str)) (concat type ":" str) str))) -- 1.7.1