;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Created: 1995/9/26 (separated from tm-view.el)
;;; Version:
-;;; $Id: tm-play.el,v 7.13 1996/02/02 17:04:16 morioka Exp $
+;;; $Id: tm-play.el,v 7.16 1996/04/21 19:57:22 morioka Exp $
;;; Keywords: mail, news, MIME, multimedia
;;;
;;; This file is part of tm (Tools for MIME).
(require 'tm-view)
+(defvar mime-viewer/external-progs "/usr/local/share/tm/"
+ "*Directory containing tm external methods.")
+
;;; @ content decoder
;;;
)
(goto-char b)
(write-region b end file)
+ (message "External method is starting...")
(setq cal (put-alist
'name (replace-as-filename name) cal))
(setq cal (put-alist 'file file cal))
(mime-article/make-method-args cal
(cdr (cdr method)))
))
- (apply (function start-process) args)
+ (let ((process-environment
+ (let ((rest process-environment)
+ dest cell)
+ (while (setq cell (car rest))
+ (setq dest
+ (cons
+ (if (string-match "^PATH=" cell)
+ (format "PATH=%s:%s"
+ mime-viewer/external-progs
+ (substring cell (match-end 0)))
+ cell)
+ dest))
+ (setq rest (cdr rest))
+ )
+ (nconc (nreverse dest) rest)
+ )))
+ (apply (function start-process) args)
+ )
(mime-article/show-output-buffer)
))
))))
(substring ret (match-beginning 0)(match-end 0))
))
))
- ""))
+ ))
(defun mime-article/get-filename (param)
(replace-as-filename (mime-article/get-original-filename param))