From: morioka Date: Mon, 17 Mar 1997 15:59:51 +0000 (+0000) Subject: (mime-view-move-to-previous): New implementation. X-Git-Tag: Hokutetsu-Ishikawa-new~74 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a13edb88d69c44f332531b07fd5e8f18dd33c6aa;p=elisp%2Fsemi.git (mime-view-move-to-previous): New implementation. --- diff --git a/mime-view.el b/mime-view.el index f2aa78c..a803070 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.55 $ +;; Version: $Revision: 0.56 $ ;; 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.55 1997-03-17 15:48:10 morioka Exp $") + "$Id: mime-view.el,v 0.56 1997-03-17 15:59:51 morioka Exp $") (defconst mime-view-version (get-version-string mime-view-RCS-ID)) @@ -1052,25 +1052,18 @@ If there is no upper entity, call function `mime-view-quit'." If there is no previous entity, it calls function registered in variable `mime-view-over-to-previous-method-alist'." (interactive) - (let* ((pcl mime::preview/content-list) - (p (point)) - (i (- (length pcl) 1)) - beg) - (catch 'tag - (while (> i 0) - (setq beg (mime::preview-content-info/point-min (nth i pcl))) - (if (> p beg) - (throw 'tag (goto-char beg)) - ) - (setq i (- i 1)) - ) + (while (null (get-text-property (point) 'mime-view-cinfo)) + (backward-char) + ) + (let ((point (previous-single-property-change (point) 'mime-view-cinfo))) + (if point + (goto-char point) (let ((f (assq mime::preview/original-major-mode mime-view-over-to-previous-method-alist))) (if f (funcall (cdr f)) )) - ) - )) + ))) (defun mime-view-next-content () (interactive)