;;; emh.el --- MIME extender for mh-e
-;; Copyright (C) 1995,1996,1997,1998 Free Software Foundation, Inc.
+;; Copyright (C) 1995,1996,1997,1998,2000 Free Software Foundation, Inc.
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp>
;;; @ functions
;;;
+(defsubst emh-raw-buffer (folder-buffer)
+ (concat "article-" (if (bufferp folder-buffer)
+ (buffer-name folder-buffer)
+ folder-buffer)))
+
(defun mh-display-msg (msg-num folder &optional show-buffer mode)
"Display message number MSG-NUM of FOLDER.
This function uses `mime-view-mode' if MODE is not nil. If MODE is
(setq buffer-read-only nil)
(erase-buffer)
(if mode
- (let* ((aname (concat "article-" folder))
+ (let* ((aname (emh-raw-buffer folder))
(abuf (get-buffer aname)))
(if abuf
(progn
(if (null arg)
(not emh-automatic-mime-preview)
arg))
- (let ((raw-buffer
- (concat "article-" (buffer-name (current-buffer)))))
+ (let ((raw-buffer (emh-raw-buffer (current-buffer))))
(if (get-buffer raw-buffer)
(kill-buffer raw-buffer)
))