;;;
;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Version:
-;;; $Id: tm-def.el,v 7.55 1996/07/11 15:26:54 morioka Exp $
+;;; $Id: tm-def.el,v 7.62 1996/07/18 06:04:28 morioka Exp $
;;; Keywords: mail, news, MIME, multimedia, definition
;;;
;;; This file is part of tm (Tools for MIME).
(function find-file)
))
+(defvar mime/output-buffer-window-is-shared-with-bbdb t
+ "*If t, mime/output-buffer window is shared with BBDB window.")
+
;;; @ constants
;;;
mime-charset-type-list))
-;;; @ coding-system
-;;;
-
-(defvar mime/charset-coding-system-alist
- (let* (csl
- (f (if (and running-xemacs-20 (featurep 'mule))
- (progn
- (setq csl (coding-system-list))
- (function
- (lambda (a cell)
- (if (memq (cdr cell) csl)
- (cons cell a)
- a))))
- (function
- (lambda (a cell)
- (let ((sym (symbol-concat "*" (cdr cell) "*")))
- (if (boundp sym)
- (cons (cons (car cell) (symbol-value sym)) a)
- a))))
- )))
- (foldr f nil
- '(("ISO-2022-JP" . junet)
- ("ISO-2022-KR" . iso-2022-kr)
- ("EUC-KR" . euc-kr)
- ("GB2312" . euc-china)
- ("ISO-8859-1" . ctext)
- ("ISO-8859-2" . iso-8859-2)
- ("ISO-8859-3" . iso-8859-3)
- ("ISO-8859-4" . iso-8859-4)
- ("ISO-8859-5" . iso-8859-5)
- ("KOI8-R" . koi8)
- ("ISO-8859-7" . iso-8859-7)
- ("ISO-8859-8" . iso-8859-8)
- ("ISO-8859-9" . iso-8859-9)
- ("ISO-2022-JP-2" . iso-2022-ss2-7)
- ("X-ISO-2022-JP-2" . iso-2022-ss2-7)
- ("ISO-2022-INT-1" . iso-2022-int-1)
- ("SHIFT_JIS" . sjis)
- ("X-SHIFTJIS" . sjis)
- ("BIG5" . big5)
- ))))
-
-(defvar mime/default-coding-system *ctext*)
-
-(defun mime-charset-decode-string (str charset)
- (let ((cs (assoc charset mime/charset-coding-system-alist)))
- (if cs
- (character-decode-string str (cdr cs))
- )))
-
-(defun mime-charset-decode-region (beg end charset &optional encoding)
- (let ((ct
- (if (stringp charset)
- (cdr (assoc (upcase charset) mime/charset-coding-system-alist))
- mime/default-coding-system)))
- (if ct
- (character-decode-region beg end ct)
- )))
-
-
;;; @ button
;;;
(defun tm:button-dispatcher (event)
"Select the button under point."
(interactive "e")
- (save-window-excursion
- (mouse-set-point event)
- (let ((func (get-text-property (point) 'tm-callback))
- (data (get-text-property (point) 'tm-data))
- )
+ (let (buf point func data)
+ (save-window-excursion
+ (mouse-set-point event)
+ (setq buf (current-buffer)
+ point (point)
+ func (get-text-property (point) 'tm-callback)
+ data (get-text-property (point) 'tm-data)
+ )
+ )
+ (save-excursion
+ (set-buffer buf)
+ (goto-char point)
(if func
(apply func data)
(if (fboundp tm:mother-button-dispatcher)