From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam Subject: [PATCH] Re: bug: [[file:something.org]] is exported to [[http:something.html]] Date: Wed, 8 Sep 2010 03:11:51 +0530 Message-ID: References: <87tym1thed.wl%n142857@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=000e0cd6adc0d4f2ce048fb24364 Return-path: Received: from [140.186.70.92] (port=59510 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ot5vO-0000Lj-Fs for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 17:41:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ot5vM-0005Fo-VE for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 17:41:54 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:44633) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ot5vM-0005Er-Rx for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 17:41:52 -0400 Received: by yxk8 with SMTP id 8so2754968yxk.0 for ; Tue, 07 Sep 2010 14:41:52 -0700 (PDT) In-Reply-To: <87tym1thed.wl%n142857@gmail.com> 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: Daniel Clemente Cc: org-mode Mailinglist --000e0cd6adc0d4f2ce048fb24364 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Wed, Sep 8, 2010 at 2:12 AM, Daniel Clemente wrote: > > Commit bd1b57f92a33485c90db1efc407c8b7c7450993a (Thu Sep 2 11:35:43 2010 = +0000) did something like this in org-html.el: > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 ((str (org-export-html-format-href thefile))) > - =A0 =A0 =A0 =A0 =A0 =A0 (if (and type (not (string=3D "file" type)) > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(org-string-match-p "^//" st= r)) > + =A0 =A0 =A0 =A0 =A0 =A0 (if (and type (not (string=3D "file" type))) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(concat type ":" str) > > > This broke the exporting of [[file:a.org]] links, which now appear as [[h= ttp:a.html]]. Try C-c C-e H on any .org with such links, even in emacs -Q. > > The problem is, I think, that =84type=93 is actually "http", not "file" a= s the code tries. I think the problem is here. org-html.el: Fix exporting link to .org files. * lisp/org-html.el (org-html-cvt-org-as-html): Do not convert protocol from 'file' to 'http' Thanks and Regards Noorul --000e0cd6adc0d4f2ce048fb24364 Content-Type: text/plain; charset=US-ASCII; name="org-html.el.txt" Content-Disposition: attachment; filename="org-html.el.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gdtabxz20 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLWh0bWwuZWwgYi9saXNwL29yZy1odG1sLmVsCmluZGV4IDVk YTJhNWYuLjFhOTZmYTEgMTAwNjQ0Ci0tLSBhL2xpc3Avb3JnLWh0bWwuZWwKKysrIGIvbGlzcC9v cmctaHRtbC5lbApAQCAtNjc0LDcgKzY3NCw3IEBAIFNlZSB2YXJpYWJsZSBgb3JnLWV4cG9ydC1o dG1sLWxpbmstb3JnLWZpbGVzLWFzLWh0bWwnIgogCSAoc3RyaW5nLW1hdGNoICJcXC5vcmckIiBw YXRoKQogCSAocHJvZ24KIAkgICAgKGxpc3QKLQkgICAgICAgImh0dHAiCisJICAgICAgICJmaWxl IgogCSAgICAgICAoY29uY2F0CiAJCSAgKHN1YnN0cmluZyBwYXRoIDAgKG1hdGNoLWJlZ2lubmlu ZyAwKSkKIAkJICAiLiIK --000e0cd6adc0d4f2ce048fb24364 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --000e0cd6adc0d4f2ce048fb24364--