diff lisp/textmodes/org.el @ 69620:fd0fd3b4eeb9

(org-open-at-point): Fixed bug in wiki-style bracket links.
author Carsten Dominik <dominik@science.uva.nl>
date Tue, 21 Mar 2006 13:36:40 +0000
parents acdcffc04863
children 15d9920a3a63
line wrap: on
line diff
--- a/lisp/textmodes/org.el	Tue Mar 21 13:36:00 2006 +0000
+++ b/lisp/textmodes/org.el	Tue Mar 21 13:36:40 2006 +0000
@@ -6833,8 +6833,8 @@
 	    (while (string-match " *\n *" link)
 	      (setq link (replace-match " " t t link)))
 	    (if (string-match org-link-regexp link)
-		(setq type (match-string 1)
-		      path (match-string 2))
+		(setq type (match-string 1 link)
+		      path (match-string 2 link))
 	      (setq type "thisfile"
 		    path link))
 	    (throw 'match t)))
@@ -6893,6 +6893,10 @@
 
       (cond
 
+       ((member type '("http" "https" "ftp" "mailto" "news"))
+	;; give these to some browser
+	(browse-url (concat type ":" path)))
+
        ((string= type "tags")
 	(org-tags-view in-emacs path))
        ((or (string= type "camel")