From: morioka Date: Mon, 17 Mar 1997 16:12:44 +0000 (+0000) Subject: (mime-view-move-to-next): New implementation. X-Git-Tag: Hokutetsu-Ishikawa-new~72 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a41739d7d65047f8bc85894531988d70132713e;p=elisp%2Fsemi.git (mime-view-move-to-next): New implementation. --- diff --git a/mime-view.el b/mime-view.el index 3650194..c0bb039 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.57 $ +;; Version: $Revision: 0.58 $ ;; 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.57 1997-03-17 16:03:11 morioka Exp $") + "$Id: mime-view.el,v 0.58 1997-03-17 16:12:44 morioka Exp $") (defconst mime-view-version (get-version-string mime-view-RCS-ID)) @@ -1070,24 +1070,15 @@ variable `mime-view-over-to-previous-method-alist'." If there is no previous entity, it calls function registered in variable `mime-view-over-to-next-method-alist'." (interactive) - (let ((pcl mime::preview/content-list) - (p (point)) - beg) - (catch 'tag - (while pcl - (setq beg (mime::preview-content-info/point-min (car pcl))) - (if (< p beg) - (throw 'tag (goto-char beg)) - ) - (setq pcl (cdr pcl)) - ) + (let ((point (next-single-property-change (point) 'mime-view-cinfo))) + (if point + (goto-char point) (let ((f (assq mime::preview/original-major-mode mime-view-over-to-next-method-alist))) (if f (funcall (cdr f)) )) - ) - )) + ))) (defun mime-view-scroll-up-content (&optional h) (interactive)