From: morioka Date: Mon, 17 Mar 1997 17:18:29 +0000 (+0000) Subject: (mime-view-quit): Use variable `mime::preview/original-major-mode'. X-Git-Tag: Hokutetsu-Ishikawa-new~66 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ddbd290b7ee192a0d5c7446e31ef49ef97c634d;p=elisp%2Fsemi.git (mime-view-quit): Use variable `mime::preview/original-major-mode'. --- diff --git a/mime-view.el b/mime-view.el index 6372b10..f8919c0 100644 --- a/mime-view.el +++ b/mime-view.el @@ -6,7 +6,7 @@ ;; Created: 1994/7/13 ;; Renamed: 1994/8/31 from tm-body.el ;; Renamed: 1997/02/19 from tm-view.el -;; Version: $Revision: 0.63 $ +;; Version: $Revision: 0.64 $ ;; Keywords: MIME, multimedia, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -40,7 +40,7 @@ ;;; (defconst mime-view-RCS-ID - "$Id: mime-view.el,v 0.63 1997-03-17 17:16:17 morioka Exp $") + "$Id: mime-view.el,v 0.64 1997-03-17 17:18:29 morioka Exp $") (defconst mime-view-version (get-version-string mime-view-RCS-ID)) @@ -1147,12 +1147,12 @@ If reached to (point-min), it calls function registered in variable ) (defun mime-view-quit () + "Quit from MIME-View buffer. +It calls function registered in variable +`mime-view-quitting-method-alist'." (interactive) - (let ((r (save-excursion - (set-buffer (mime::preview-content-info/buffer - (mime-preview/point-pcinfo (point)))) - (assq major-mode mime-view-quitting-method-alist) - ))) + (let ((r (assq mime::preview/original-major-mode + mime-view-quitting-method-alist))) (if r (funcall (cdr r)) )))