;;; -*-Scheme-*-
;;;
-;;; $Id: curren.scm,v 1.125 2000/05/23 02:08:59 cph Exp $
+;;; $Id: curren.scm,v 1.126 2000/05/23 02:10:13 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-2000 Massachusetts Institute of Technology
;;;
(event-distributor/invoke!
(variable-default-value (ref-variable-object frame-creation-hook))
screen)
- (update-screen! screen false)
+ (update-screen! screen #f)
screen)))))
(define-variable frame-creation-hook
(screen-exit! screen*)
(let ((window (screen-selected-window screen)))
(undo-leave-window! window)
- (change-selected-buffer window (window-buffer window) true
+ (change-selected-buffer window (window-buffer window) #t
(lambda ()
(set-editor-selected-screen! current-editor screen))))
(set-current-message! message)
(screen-enter! screen)
- (update-screen! screen false))))))))
+ (update-screen! screen #f))))))))
\f
(define (update-screens! display-style)
(let loop ((screens (screen-list)))
;; the screens, so erase the change records.
(do ((buffers (buffer-list) (cdr buffers)))
((null? buffers))
- (set-group-start-changes-index! (buffer-group (car buffers))
- false))
- true)
+ (set-group-start-changes-index! (buffer-group (car buffers)) #f))
+ #t)
(and (update-screen! (car screens) display-style)
(loop (cdr screens))))))
(undo-leave-window! window)
(let ((screen (window-screen window)))
(if (selected-screen? screen)
- (change-selected-buffer window (window-buffer window) true
+ (change-selected-buffer window (window-buffer window) #t
(lambda ()
(screen-select-window! screen window)))
(begin
(window-set-override-message! window message)
(window-clear-override-message! window))
(if (not *executing-keyboard-macro?*)
- (window-direct-update! window true))))
+ (window-direct-update! window #t))))
(define (clear-current-message!)
(let ((window (typein-window)))
(window-clear-override-message! window)
(if (not *executing-keyboard-macro?*)
- (window-direct-update! window true))))
+ (window-direct-update! window #t))))
(define (with-messages-suppressed thunk)
(fluid-let ((*suppress-messages?* #t))
(other-buffer (selected-buffer)))
(define (other-buffer buffer)
- (let loop ((less-preferred false) (buffers (buffer-list)))
+ (let loop ((less-preferred #f) (buffers (buffer-list)))
(cond ((null? buffers)
less-preferred)
((or (eq? buffer (car buffers))
(without-interrupts
(lambda ()
(for-each (lambda (process)
- (hangup-process process true)
- (set-process-buffer! process false))
+ (hangup-process process #t)
+ (set-process-buffer! process #f))
(buffer-processes buffer))
(for-each (lambda (hook) (hook buffer))
(get-buffer-hooks buffer 'KILL-BUFFER-HOOKS))
(or (buffer-get buffer key) '()))
\f
(define (select-buffer buffer)
- (select-buffer-in-window buffer (selected-window) true))
+ (select-buffer-in-window buffer (selected-window) #t))
(define (select-buffer-no-record buffer)
- (select-buffer-in-window buffer (selected-window) false))
+ (select-buffer-in-window buffer (selected-window) #f))
(define (select-buffer-in-window buffer window record?)
(without-interrupts
(let ((window (selected-window)))
(set! old-buffer (window-buffer window))
(if (buffer-alive? buffer)
- (select-buffer-in-window buffer window true)))
+ (select-buffer-in-window buffer window #t)))
(set! buffer)
unspecific)
thunk
(let ((window (selected-window)))
(set! buffer (window-buffer window))
(if (buffer-alive? old-buffer)
- (select-buffer-in-window old-buffer window true)))
+ (select-buffer-in-window old-buffer window #t)))
(set! old-buffer)
unspecific))))