Variable `tm:URL-regexp', `browse-url-browser-function' and function
authortmorioka <tmorioka>
Tue, 25 Feb 1997 07:30:15 +0000 (07:30 +0000)
committertmorioka <tmorioka>
Tue, 25 Feb 1997 07:30:15 +0000 (07:30 +0000)
`tm:browse-url' were moved from mime-def.el.

mime-text.el

index 2418615..d36e60b 100644 (file)
@@ -4,7 +4,7 @@
 
 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
 ;; Version:
-;;     $Id: mime-text.el,v 0.4 1997-02-21 05:28:36 tmorioka Exp $
+;;     $Id: mime-text.el,v 0.5 1997-02-25 07:30:15 tmorioka Exp $
 ;; Keywords: text, MIME, multimedia, mail, news
 
 ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
         )))
 
 
+;;; @ for URL
+;;;
+
+(defvar tm:URL-regexp
+  "\\(http\\|ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\):\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?[-a-zA-Z0-9_=?#$@~`%&*+|\\/.,]*[-a-zA-Z0-9_=#$@~`%&*+|\\/]")
+
+(defvar browse-url-browser-function nil)
+
+(defun tm:browse-url (&optional url)
+  (if (fboundp browse-url-browser-function)
+      (if url 
+        (funcall browse-url-browser-function url)
+      (call-interactively browse-url-browser-function))
+    (if (fboundp tm:mother-button-dispatcher)
+       (call-interactively tm:mother-button-dispatcher)
+      )
+    ))
+
+
 ;;; @ content filters for mime-text
 ;;;