;;; -*-Scheme-*-
;;;
-;;; $Id: abbrev.scm,v 1.4 2000/04/30 22:16:57 cph Exp $
+;;; $Id: abbrev.scm,v 1.5 2000/07/28 15:15:29 cph Exp $
;;;
;;; Copyright (c) 2000 Massachusetts Institute of Technology
;;;
(define-command list-abbrevs
"Display a list of all defined abbrevs."
()
- (lambda () (pop-up-buffer (prepare-abbrev-list-buffer) #f #f)))
+ (lambda () (pop-up-buffer (prepare-abbrev-list-buffer) #f)))
(define (prepare-abbrev-list-buffer)
(let ((buffer (find-or-create-buffer "*Abbrevs*")))
;;; -*-Scheme-*-
;;;
-;;; $Id: bufmnu.scm,v 1.129 2000/05/23 20:06:35 cph Exp $
+;;; $Id: bufmnu.scm,v 1.130 2000/07/28 15:15:30 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-2000 Massachusetts Institute of Technology
;;;
#f)
(with-variable-value! (ref-variable-object pop-up-windows) #t
(lambda ()
- (pop-up-buffer (previous-buffer))))
+ (pop-up-buffer (previous-buffer) #f)))
(clear-message)))
\f
(define-command buffer-menu-this-window
;;; -*-Scheme-*-
;;;
-;;; $Id: debug.scm,v 1.50 2000/04/30 22:17:00 cph Exp $
+;;; $Id: debug.scm,v 1.51 2000/07/28 15:15:31 cph Exp $
;;;
;;; Copyright (c) 1992-2000 Massachusetts Institute of Technology
;;;
(call-with-interface-port
(let ((buff (new-buffer " *debug*-RESTARTS")))
(add-browser-buffer! browser buff)
- (pop-up-buffer buff)
+ (pop-up-buffer buff #f)
(buffer-start buff))
(lambda (port)
(write-string " " port)
;;; -*-Scheme-*-
;;;
-;;; $Id: os2.scm,v 1.49 2000/03/23 03:19:15 cph Exp $
+;;; $Id: os2.scm,v 1.50 2000/07/28 15:15:33 cph Exp $
;;;
;;; Copyright (c) 1994-2000 Massachusetts Institute of Technology
;;;
(let ((buffer (temporary-buffer "*popclient*")))
(cleanup-pop-up-buffers
(lambda ()
- (pop-up-buffer buffer)
+ (pop-up-buffer buffer #f)
(let ((status.reason
(let ((args
(list "-u" user-name
;;; -*-Scheme-*-
;;;
-;;; $Id: sendmail.scm,v 1.67 2000/07/20 02:30:03 cph Exp $
+;;; $Id: sendmail.scm,v 1.68 2000/07/28 15:15:34 cph Exp $
;;;
;;; Copyright (c) 1991-2000 Massachusetts Institute of Technology
;;;
(if selector (selector buffer))
(if (cleanup-pop-up-buffers
(lambda ()
- (if (not selector) (pop-up-buffer buffer))
+ (if (not selector) (pop-up-buffer buffer #f))
(prompt-for-confirmation?
"Unsent message being composed; erase it")))
(continue #f)
;;; -*-Scheme-*-
;;;
-;;; $Id: unix.scm,v 1.108 2000/04/30 22:17:08 cph Exp $
+;;; $Id: unix.scm,v 1.109 2000/07/28 15:15:35 cph Exp $
;;;
;;; Copyright (c) 1989-2000 Massachusetts Institute of Technology
;;;
(let ((buffer (temporary-buffer "*popclient*")))
(cleanup-pop-up-buffers
(lambda ()
- (pop-up-buffer buffer)
+ (pop-up-buffer buffer #f)
(let ((status.reason
(unix/call-with-pop-client-password-options password
(lambda (password-options)
;;; -*-Scheme-*-
;;;
-;;; $Id: vc.scm,v 1.69 2000/05/16 15:12:07 cph Exp $
+;;; $Id: vc.scm,v 1.70 2000/07/28 15:15:37 cph Exp $
;;;
;;; Copyright (c) 1994-2000 Massachusetts Institute of Technology
;;;
(if (not shown?)
(begin
(if from-dired?
- (pop-up-buffer buffer #f #t)
+ (pop-up-buffer buffer #f
+ '(NOT-CURRENT-WINDOW))
(select-buffer buffer))
(set! shown? #t))))))
;; If the file on disk is newer, then the user just
;; anyhow:
#f)
(else
- (pop-up-buffer buffer)
+ (pop-up-buffer buffer #f)
(error "Couldn't analyze cvs update result."))))))))
\f
;;;; Command Execution
#| -*-Scheme-*-
-$Id: webster.scm,v 1.4 2000/04/30 22:17:10 cph Exp $
+$Id: webster.scm,v 1.5 2000/07/28 15:15:38 cph Exp $
Copyright (c) 1998-2000 Massachusetts Institute of Technology
(let ((windows (buffer-windows buffer)))
(if (null? windows)
(begin
- (pop-up-buffer buffer #f #f)
+ (pop-up-buffer buffer #f)
(car (buffer-windows buffer)))
(car windows)))))
(set-window-point! window m)
;;; -*-Scheme-*-
;;;
-;;; $Id: wincom.scm,v 1.125 2000/04/07 19:53:16 cph Exp $
+;;; $Id: wincom.scm,v 1.126 2000/07/28 15:14:19 cph Exp $
;;;
;;; Copyright (c) 1987, 1989-2000 Massachusetts Institute of Technology
;;;
(define *minibuffer-scroll-window* (weak-cons #f #f))
(define *pop-up-buffer-window-alist* '())
\f
-(define (pop-up-buffer buffer #!optional select? not-current-window?)
+(define (pop-up-buffer buffer select? #!optional options)
;; If some new window is created by this procedure, it is returned
;; as the value. Otherwise the value is #f.
- (let ((select? (and (not (default-object? select?)) select?))
- (current-window-ok?
- (if (default-object? not-current-window?)
- #t
- (not not-current-window?))))
+ (let ((select? (if (default-object? select?) #f select?))
+ (options (if (default-object? options) '() options)))
(define (pop-up-window window)
(let ((window (window-split-vertically! window #f)))
(define (maybe-record-window window)
(weak-set-car! *minibuffer-scroll-window* window)
(if select? (select-window window))
- #f)
+ (and (eq? window (weak-car *previous-popped-up-window*))
+ window))
(define (find-visible-window buffer)
(let loop ((windows (buffer-windows buffer)))
(and (not (null? windows))
(let ((window (car windows)))
(if (and (window-visible? window)
- (or current-window-ok? (not (current-window? window))))
+ (or (not (memq 'NOT-CURRENT-WINDOW options))
+ (not (current-window? window))))
window
(loop (cdr windows)))))))
(let ((window (largest-window)))
(if (and (>= (window-y-size window)
(ref-variable split-height-threshold))
- (not
- (window-has-horizontal-neighbor?
- window)))
+ (not (window-has-horizontal-neighbor? window)))
(pop-up-window window)
(let ((window (lru-window))
(current (current-window)))