;; Created: 1994/7/13
;; Renamed: 1994/8/31 from tm-body.el
;; Renamed: 1997/02/19 from tm-view.el
-;; Version: $Revision: 0.116 $
+;; Version: $Revision: 0.117 $
;; Keywords: MIME, multimedia, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
;;;
(defconst mime-view-RCS-ID
- "$Id: mime-view.el,v 0.116 1997-11-15 14:55:44 morioka Exp $")
+ "$Id: mime-view.el,v 0.117 1997-11-23 15:35:31 morioka Exp $")
(defconst mime-view-version
`,(get-version-string mime-view-RCS-ID))
(run-hooks 'mime-view-define-keymap-hook)
))
-(defsubst mime-hide-echo-buffer ()
- "Hide mime-echo buffer."
- (let ((win (get-buffer-window mime-echo-buffer-name)))
- (if win
- (delete-window win)
- )))
+(defsubst mime-maybe-hide-echo-buffer ()
+ "Clear mime-echo buffer and delete window for it."
+ (let ((buf (get-buffer mime-echo-buffer-name)))
+ (if buf
+ (save-excursion
+ (set-buffer buf)
+ (erase-buffer)
+ (let ((win (get-buffer-window buf)))
+ (if win
+ (delete-window win)
+ ))))))
(defun mime-view-mode (&optional mother ctl encoding ibuf obuf
default-keymap-or-function)
and decode current content as `play mode'
"
(interactive)
- (let ((buf (get-buffer mime-echo-buffer-name)))
- (if buf
- (save-excursion
- (set-buffer buf)
- (erase-buffer)
- (mime-hide-echo-buffer)
- )))
+ (mime-maybe-hide-echo-buffer)
(let ((ret (mime-view-setup-buffers ctl encoding ibuf obuf))
(win-conf (current-window-configuration))
)