;; Created: 1994/7/13
;; Renamed: 1994/8/31 from tm-body.el
;; Renamed: 1997/02/19 from tm-view.el
-;; Version: $Revision: 0.61 $
+;; Version: $Revision: 0.62 $
;; 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.61 1997-03-17 16:58:57 morioka Exp $")
+ "$Id: mime-view.el,v 0.62 1997-03-17 17:12:13 morioka Exp $")
(defconst mime-view-version (get-version-string mime-view-RCS-ID))
)))
(defun mime-view-scroll-down-entity (&optional h)
- "Scroll down current entity."
+ "Scroll down current entity.
+If reached to (point-min), it calls function registered in variable
+`mime-view-over-to-previous-method-alist'."
(interactive)
(or h
- (setq h (- (window-height) 1))
+ (setq h (1- (window-height)))
)
(if (= (point) (point-min))
(let ((f (assq mime::preview/original-major-mode
(if f
(funcall (cdr f))
))
- (let ((pcl mime::preview/content-list)
- (p (point))
- pp beg)
- (setq pp
- (or (let ((i (- (length pcl) 1)))
- (catch 'tag
- (while (> i 0)
- (setq beg (mime::preview-content-info/point-min
- (nth i pcl)))
- (if (> p beg)
- (throw 'tag beg)
- )
- (setq i (- i 1))
- )))
- (point-min)))
+ (let (point)
+ (save-excursion
+ (catch 'tag
+ (while (> (point) 1)
+ (if (setq point
+ (previous-single-property-change (point)
+ 'mime-view-cinfo))
+ (throw 'tag t)
+ )
+ (backward-char)
+ )
+ (setq point (point-min))
+ ))
(forward-line (- h))
- (if (< (point) pp)
- (goto-char pp)
- )))
- )
+ (if (< (point) point)
+ (goto-char point)
+ ))))
(defun mime-view-next-line-content ()
(interactive)