From: morioka Date: Mon, 17 Mar 1997 17:16:17 +0000 (+0000) Subject: (mime-view-show-summary): Use variable X-Git-Tag: Hokutetsu-Ishikawa-new~67 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04c6dc0e53a29e69babe13d6a24efcd4c4ac10d1;p=elisp%2Fsemi.git (mime-view-show-summary): Use variable `mime::preview/original-major-mode'. --- diff --git a/mime-view.el b/mime-view.el index 68fc496..6372b10 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.62 $ +;; Version: $Revision: 0.63 $ ;; 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.62 1997-03-17 17:12:13 morioka Exp $") + "$Id: mime-view.el,v 0.63 1997-03-17 17:16:17 morioka Exp $") (defconst mime-view-version (get-version-string mime-view-RCS-ID)) @@ -369,7 +369,8 @@ Please redefine this function if you want to change default setting." (defvar mime-view-over-to-previous-method-alist nil) (defvar mime-view-over-to-next-method-alist nil) -(defvar mime-view-show-summary-method nil) +(defvar mime-view-show-summary-method nil + "Alist of major-mode vs. show-summary-method.") ;;; @@ following method @@ -1157,14 +1158,12 @@ If reached to (point-min), it calls function registered in variable ))) (defun mime-view-show-summary () + "Show summary. +It calls function registered in variable +`mime-view-show-summary-method'." (interactive) - (let ((r (save-excursion - (set-buffer - (mime::preview-content-info/buffer - (mime-preview/point-pcinfo (point))) - ) - (assq major-mode mime-view-show-summary-method) - ))) + (let ((r (assq mime::preview/original-major-mode + mime-view-show-summary-method))) (if r (funcall (cdr r)) )))