From 8ae55288366067d371944828fe4c53f688f45504 Mon Sep 17 00:00:00 2001 From: morioka Date: Fri, 3 Apr 1998 06:32:56 +0000 Subject: [PATCH] (mime-text-add-url-buttons): Use `widget-convert-text' instead of `mime-add-button'. --- mime-text.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mime-text.el b/mime-text.el index 6a22fbd..933c935 100644 --- a/mime-text.el +++ b/mime-text.el @@ -5,7 +5,7 @@ ;; Author: MORIOKA Tomohiko ;; 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 @@ -25,6 +25,7 @@ ;;; Code: (require 'mime-view) +(autoload 'widget-convert-text "wid-edit") ;;; @ buffer local variables in raw-buffer @@ -118,8 +119,7 @@ local variable `mime-text-decoder' and variable (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 () -- 1.7.10.4