(mime-view-caesar): Select window which displays current-buffer if it
authormorioka <morioka>
Tue, 26 Jan 1999 13:41:53 +0000 (13:41 +0000)
committermorioka <morioka>
Tue, 26 Jan 1999 13:41:53 +0000 (13:41 +0000)
is not selected <to fix problem with mouse operations>.

mime-play.el

index 66e38f3..6c00a38 100644 (file)
@@ -670,7 +670,12 @@ It is registered to variable `mime-preview-quitting-method-alist'."
       (mule-caesar-region (point-min) (point-max))
       (set-buffer-modified-p nil)
       )
+    (let ((win (get-buffer-window (current-buffer))))
+      (or (eq (selected-window) win)
+         (select-window (or win (get-largest-window)))
+         ))
     (view-buffer buf)
+    (goto-char (point-min))
     ))