;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Keywords: text, MIME, multimedia, mail, news
-;; This file is part of SEMI (Suite of Emacs MIME Interfaces).
+;; This file is part of WEMI (Widget based Emacs MIME Interfaces).
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;;; Code:
(require 'mime-view)
+(autoload 'widget-convert-text "wid-edit")
;;; @ buffer local variables in raw-buffer
(while (re-search-forward mime-text-url-regexp nil t)
(let ((beg (match-beginning 0))
(end (match-end 0)))
- (mime-add-button beg end #'mime-text-browse-url
- (list (buffer-substring beg end)))
+ (widget-convert-text 'url-link beg end)
)))
(defun mime-text-add-url-buttons-maybe ()