From 42bb8bac7a095f8b4bfb78a99311a5f30ca6d482 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Thu, 31 Mar 2005 19:00:03 +0000 Subject: [PATCH] Extend ->BUFFER to accept #F meaning current buffer. --- v7/src/edwin/buffer.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v7/src/edwin/buffer.scm b/v7/src/edwin/buffer.scm index cda0df325..20d25cb42 100644 --- a/v7/src/edwin/buffer.scm +++ b/v7/src/edwin/buffer.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: buffer.scm,v 1.191 2005/03/31 18:59:05 cph Exp $ +$Id: buffer.scm,v 1.192 2005/03/31 19:00:03 cph Exp $ Copyright 1986,1989,1990,1991,1992,1993 Massachusetts Institute of Technology Copyright 1994,1995,1996,1998,1999,2000 Massachusetts Institute of Technology @@ -248,6 +248,7 @@ The buffer is guaranteed to be deselected at that time." ((group? object) (group-buffer object)) ((region? object) (mark-buffer (region-start object))) ((window? object) (window-buffer object)) + ((not object) (current-buffer)) (else (error:wrong-type-argument object "buffer" '->BUFFER))) (error:bad-range-argument object '->BUFFER))) -- 2.25.1