From: yamaoka Date: Wed, 6 Oct 1999 03:35:22 +0000 (+0000) Subject: Sync up with semi-1_13. X-Git-Tag: wemi-1_13_7~1 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a2f8e93b0199da503a27e1db9540564cd418e70e;p=elisp%2Fsemi.git Sync up with semi-1_13. --- diff --git a/ChangeLog b/ChangeLog index b506a49..b4a1c35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-10-06 Yoshiki Hayashi + + * mime-view.el (mime-preview-move-to-upper): Scroll + according to mime-preview-move-scroll. + 1999-10-05 Yoshiki Hayashi * mime-view.el (mime-preview-scroll-down-entity, diff --git a/NEWS b/NEWS index bed3c92..529574f 100644 --- a/NEWS +++ b/NEWS @@ -58,6 +58,13 @@ header when `mime-display-entity' runs `mime-display-header-hook'. Therefore header-presentation-method must not change current point. +** New variable `mime-preview-move-scroll' + +This variables decides how to scroll in the MIME-View-mode +when mime-preview-move-upper, mime-preview-move-previous, +mime-preview-move-next is called. Those are bound to `u', `p', `n', +respectively. + * Changes in SEMI 1.12 diff --git a/mime-view.el b/mime-view.el index bc6dc7a..28407e8 100644 --- a/mime-view.el +++ b/mime-view.el @@ -1288,8 +1288,17 @@ If there is no upper entity, call function `mime-preview-quit'." (while (setq point (previous-single-property-change (point) 'mime-view-entity)) (goto-char point) - (if (eq r (get-text-property (point) 'mime-view-entity)) - (throw 'tag t) + (when (eq r (get-text-property (point) 'mime-view-entity)) + (if (or (eq mime-preview-move-scroll t) + (and mime-preview-move-scroll + (>= point + (save-excursion + (move-to-window-line -1) + (forward-line (* -1 next-screen-context-lines)) + (beginning-of-line) + (point))))) + (recenter next-screen-context-lines)) + (throw 'tag t) ) ) (mime-preview-quit)