;;; -*-Scheme-*-
;;;
-;;; $Id: curren.scm,v 1.115 1995/04/27 20:33:28 cph Exp $
+;;; $Id: curren.scm,v 1.116 1995/04/30 07:02:10 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-95 Massachusetts Institute of Technology
;;;
(set-buffer-point! buffer (window-point window))
(if record?
(bufferset-select-buffer! (current-bufferset) buffer))
- (for-each (lambda (hook) (hook buffer))
+ (for-each (lambda (hook) (hook buffer window))
(get-buffer-hooks buffer 'SELECT-BUFFER-HOOKS))
(if (not (minibuffer? buffer))
(event-distributor/invoke!
;;; -*-Scheme-*-
;;;
-;;; $Id: intmod.scm,v 1.85 1994/11/01 23:12:09 adams Exp $
+;;; $Id: intmod.scm,v 1.86 1995/04/30 07:02:18 cph Exp $
;;;
-;;; Copyright (c) 1986, 1989-94 Massachusetts Institute of Technology
+;;; Copyright (c) 1986, 1989-95 Massachusetts Institute of Technology
;;;
;;; This material was developed by the Scheme project at the
;;; Massachusetts Institute of Technology, Department of
(define (when-buffer-selected buffer thunk)
(if (current-buffer? buffer)
(thunk)
- (letrec
- ((hook
- (lambda (buffer)
- (thunk)
- (remove-select-buffer-hook buffer hook))))
+ (letrec ((hook (lambda (buffer window)
+ (if (current-window? window)
+ (begin
+ (thunk)
+ (remove-select-buffer-hook buffer hook))))))
(add-select-buffer-hook buffer hook))))
(define (operation/prompt-for-command-expression port prompt level)