`mime-edit-mime-map' -> `mime-edit-map'.
[elisp/semi.git] / mime-text.el
index 968d37e..63b4955 100644 (file)
@@ -4,7 +4,7 @@
 
 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
 ;; Version:
-;;     $Id: mime-text.el,v 0.7 1997-02-25 07:37:40 tmorioka Exp $
+;;     $Id: mime-text.el,v 0.11 1997-03-04 12:39:25 morioka Exp $
 ;; Keywords: text, MIME, multimedia, mail, news
 
 ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
@@ -30,9 +30,9 @@
 ;;;
 
 (defvar mime-text-decoder-alist
-  '((mime/show-message-mode      . mime-charset/decode-buffer)
-    (mime/temporary-message-mode . mime-charset/decode-buffer)
-    (t                          . mime-charset/maybe-decode-buffer)
+  '((mime/show-message-mode    . mime-charset/decode-buffer)
+    (mime-temp-message-mode    . mime-charset/decode-buffer)
+    (t                         . mime-charset/maybe-decode-buffer)
     ))
 
 (defun mime-charset/decode-buffer (charset &optional encoding)
   "\\(http\\|ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\):\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?[-a-zA-Z0-9_=?#$@~`%&*+|\\/.,]*[-a-zA-Z0-9_=#$@~`%&*+|\\/]"
   "*Regexp to match URL in text/plain body.")
 
-(defun tm:browse-url (&optional url)
+(defun mime-text-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)
+    (if (fboundp mime-button-mother-dispatcher)
+       (call-interactively mime-button-mother-dispatcher)
       )
     ))
 
@@ -95,9 +95,9 @@
        (while (re-search-forward mime-text-url-regexp nil t)
          (let ((beg (match-beginning 0))
                (end (match-end 0)))
-           (tm:add-button beg end
-                          (function tm:browse-url)
-                          (list (buffer-substring beg end))))
+           (mime-add-button beg end
+                            (function mime-text-browse-url)
+                            (list (buffer-substring beg end))))
          )))
   (run-hooks 'mime-view-plain-text-preview-hook)
   )