Mercurial > hg > xemacs-beta
comparison lisp/tm/tm-def.el @ 76:c0c698873ce1 r20-0b33
Import from CVS: tag r20-0b33
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:05:10 +0200 |
parents | 54cc21c15cbb |
children | 364816949b59 |
comparison
equal
deleted
inserted
replaced
75:a4e0195b387b | 76:c0c698873ce1 |
---|---|
1 ;;; tm-def.el --- definition module for tm | 1 ;;; tm-def.el --- definition module for tm |
2 | 2 |
3 ;; Copyright (C) 1995,1996 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1995,1996 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp> | 5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp> |
6 ;; Version: $Id: tm-def.el,v 1.1.1.2 1996/12/21 20:50:42 steve Exp $ | 6 ;; Version: $Id: tm-def.el,v 1.2 1996/12/28 21:03:13 steve Exp $ |
7 ;; Keywords: mail, news, MIME, multimedia, definition | 7 ;; Keywords: mail, news, MIME, multimedia, definition |
8 | 8 |
9 ;; This file is part of tm (Tools for MIME). | 9 ;; This file is part of tm (Tools for MIME). |
10 | 10 |
11 ;; This program is free software; you can redistribute it and/or | 11 ;; This program is free software; you can redistribute it and/or |
102 (defun tm:set-face-region (b e face) | 102 (defun tm:set-face-region (b e face) |
103 (let ((overlay (tl:make-overlay b e))) | 103 (let ((overlay (tl:make-overlay b e))) |
104 (tl:overlay-put overlay 'face face) | 104 (tl:overlay-put overlay 'face face) |
105 )) | 105 )) |
106 | 106 |
107 (setq tm:button-face 'bold) | 107 (defvar tm:button-face 'bold |
108 (setq tm:mouse-face 'highlight) | 108 "Face used for content-button or URL-button of MIME-Preview buffer. |
109 \[tm-def.el]") | |
110 | |
111 (defvar tm:mouse-face 'highlight | |
112 "Face used for MIME-preview buffer mouse highlighting. [tm-def.el]") | |
109 | 113 |
110 (defun tm:add-button (from to func &optional data) | 114 (defun tm:add-button (from to func &optional data) |
111 "Create a button between FROM and TO with callback FUNC and data DATA." | 115 "Create a button between FROM and TO with callback FUNC and data DATA." |
112 (and tm:button-face | 116 (and tm:button-face |
113 (tl:overlay-put (tl:make-overlay from to) 'face tm:button-face)) | 117 (tl:overlay-put (tl:make-overlay from to) 'face tm:button-face)) |