From 5d911f462d1e0af7ba25d4e1fdf0ce7552ded953 Mon Sep 17 00:00:00 2001 From: morioka Date: Mon, 17 Mar 1997 15:34:30 +0000 Subject: [PATCH] (mime-view-up-content): New implementation. --- mime-view.el | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/mime-view.el b/mime-view.el index 7ea01f0..3c57c78 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.51 $ +;; Version: $Revision: 0.52 $ ;; 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.51 1997-03-17 15:02:53 morioka Exp $") + "$Id: mime-view.el,v 0.52 1997-03-17 15:34:30 morioka Exp $") (defconst mime-view-version (get-version-string mime-view-RCS-ID)) @@ -1025,27 +1025,24 @@ It decodes current entity to call internal or external method as (defun mime-view-up-content () (interactive) - (let* ((pc (mime-preview/point-pcinfo (point))) - (cinfo (mime::preview-content-info/content-info pc)) - (rcnum (mime::content-info/rcnum cinfo)) - ) - (if rcnum - (let ((r (save-excursion - (set-buffer (mime::preview-content-info/buffer pc)) - (mime-article/rcnum-to-cinfo (cdr rcnum)) - )) - (rpcl mime::preview/content-list) - cell) - (while (and - (setq cell (car rpcl)) - (not (eq r (mime::preview-content-info/content-info cell))) - ) - (setq rpcl (cdr rpcl)) + (let (cinfo) + (while (null (setq cinfo (get-text-property (point) 'mime-view-cinfo))) + (backward-char) + ) + (let ((r (mime-article/rcnum-to-cinfo + (cdr (mime::content-info/rcnum cinfo)) + (get-text-property 1 'mime-view-cinfo))) + point) + (catch 'tag + (while (setq point (previous-single-property-change + (point) 'mime-view-cinfo)) + (goto-char point) + (if (eq r (get-text-property (point) 'mime-view-cinfo)) + (throw 'tag t) ) - (goto-char (mime::preview-content-info/point-min cell)) ) - (mime-view-quit) - ))) + (mime-view-quit) + )))) (defun mime-view-previous-content () (interactive) -- 1.7.10.4