;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/wincom.scm,v 1.102 1991/05/10 22:18:28 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/wincom.scm,v 1.103 1991/05/18 03:13:48 cph Exp $
;;;
;;; Copyright (c) 1987, 1989-91 Massachusetts Institute of Technology
;;;
"Pop-up windows would prefer to split the largest window if this large.
If there is only one window, it is split regardless of this value."
500)
-
+\f
(define-command redraw-display
"Redraws the entire display from scratch."
()
"Scroll text of next window up ARG lines, or near full screen if no arg."
"P"
(lambda (argument)
- (let ((window (other-window-interactive 1)))
+ (let ((window
+ (or (and (typein-window? (current-window))
+ (object-unhash *minibuffer-scroll-window*))
+ (other-window-interactive 1))))
(scroll-window window
(standard-scroll-window-argument window argument 1)))))
means scroll one screenful down."
"P"
(lambda (argument)
- (let ((window (other-window-interactive 1)))
+ (let ((window
+ (or (and (typein-window? (current-window))
+ (object-unhash *minibuffer-scroll-window*))
+ (other-window-interactive 1))))
(scroll-window window
(multi-scroll-window-argument window argument 1)))))
\f
(define (cleanup-pop-up-buffers thunk)
(fluid-let ((*previous-popped-up-window* (object-hash false))
- (*previous-popped-up-buffer* (object-hash false)))
+ (*previous-popped-up-buffer* (object-hash false))
+ (*minibuffer-scroll-window* (object-hash false)))
(dynamic-wind (lambda () unspecific)
thunk
(lambda () (kill-pop-up-buffer false)))))
(define *previous-popped-up-buffer* (object-hash false))
(define *previous-popped-up-window* (object-hash false))
+(define *minibuffer-scroll-window* (object-hash false))
\f
(define (pop-up-buffer buffer #!optional select?)
;; If some new window is created by this procedure, it is returned
(maybe-record-window window))
(define (maybe-record-window window)
+ (set! *minibuffer-scroll-window* (object-hash window))
(if select? (select-window window))
(and (eq? window (object-unhash *previous-popped-up-window*))
window))