3
;;; $Id: bufcom.scm,v 1.107 2000/03/23 03:18:47 cph Exp $
5
;;; Copyright (c) 1986, 1989-2000 Massachusetts Institute of Technology
7
;;; This program is free software; you can redistribute it and/or
8
;;; modify it under the terms of the GNU General Public License as
9
;;; published by the Free Software Foundation; either version 2 of the
10
;;; License, or (at your option) any later version.
12
;;; This program is distributed in the hope that it will be useful,
13
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
;;; General Public License for more details.
17
;;; You should have received a copy of the GNU General Public License
18
;;; along with this program; if not, write to the Free Software
19
;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
3
$Id: bufcom.scm,v 1.110 2003/02/14 18:28:11 cph Exp $
5
Copyright 1986,1989,1990,1992,1994,1996 Massachusetts Institute of Technology
6
Copyright 1997,1998,1999,2000,2003 Massachusetts Institute of Technology
8
This file is part of MIT/GNU Scheme.
10
MIT/GNU Scheme is free software; you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation; either version 2 of the License, or (at
13
your option) any later version.
15
MIT/GNU Scheme is distributed in the hope that it will be useful, but
16
WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
General Public License for more details.
20
You should have received a copy of the GNU General Public License
21
along with MIT/GNU Scheme; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21
27
;;;; Buffer Commands
273
279
(define (call-with-temporary-buffer name procedure)
275
(unwind-protect (lambda ()
276
(set! buffer (temporary-buffer name)))
281
(dynamic-wind (lambda ()
282
(set! buffer (temporary-buffer name)))
284
290
(define (temporary-buffer name)
285
291
(let ((buffer (find-or-create-buffer name)))