X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=mime-def.el;h=3db3c7691295b79ba7ea3a5b3993289892693be6;hb=2f5795b892b79fc60bec2b187b1706c005a8ea2f;hp=8e3ef6962a44a1e6b7ca51d6350d883309ecf948;hpb=de68cedb7a8ed206310d7b8b4873ea438e819561;p=elisp%2Fsemi.git diff --git a/mime-def.el b/mime-def.el index 8e3ef69..3db3c76 100644 --- a/mime-def.el +++ b/mime-def.el @@ -3,7 +3,7 @@ ;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc. ;; Author: MORIOKA Tomohiko -;; Version: $Id: mime-def.el,v 0.14 1997-02-26 02:42:16 tmorioka Exp $ +;; Version: $Id: mime-def.el,v 0.18 1997-02-26 04:16:00 tmorioka Exp $ ;; Keywords: definition, MIME, multimedia, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -56,23 +56,24 @@ ;;; @ button ;;; -(defvar tm:button-face 'bold +(defvar mime-button-face 'bold "Face used for content-button or URL-button of MIME-Preview buffer. \[mime-def.el]") -(defvar tm:mouse-face 'highlight +(defvar mime-button-mouse-face 'highlight "Face used for MIME-preview buffer mouse highlighting. [mime-def.el]") (defun tm:add-button (from to func &optional data) "Create a button between FROM and TO with callback FUNC and data DATA." - (and tm:button-face - (overlay-put (tl:make-overlay from to) 'face tm:button-face)) + (and mime-button-face + (overlay-put (make-overlay from to) 'face mime-button-face)) (tl:add-text-properties from to - (append (and tm:mouse-face - (list 'mouse-face tm:mouse-face)) - (list 'mime-callback func) - (and data (list 'mime-data data)) - )) + (nconc + (and mime-button-mouse-face + (list 'mouse-face mime-button-mouse-face)) + (list 'semi-callback func) + (and data (list 'semi-data data)) + )) ) (defvar tm:mother-button-dispatcher nil) @@ -85,8 +86,8 @@ (mouse-set-point event) (setq buf (current-buffer) point (point) - func (get-text-property (point) 'mime-callback) - data (get-text-property (point) 'mime-data) + func (get-text-property (point) 'semi-callback) + data (get-text-property (point) 'semi-data) ) ) (save-excursion