From 706ea33264cb7d437025585d1a688c1772368fd9 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 8 Mar 1994 20:15:54 +0000 Subject: [PATCH] Define VARIABLE-PERMANENT-LOCAL! and VARIABLE-PERMANENT-LOCAL?. --- v7/src/edwin/comman.scm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/v7/src/edwin/comman.scm b/v7/src/edwin/comman.scm index 06e88b7a3..a0fae7030 100644 --- a/v7/src/edwin/comman.scm +++ b/v7/src/edwin/comman.scm @@ -1,8 +1,8 @@ #| -*-Scheme-*- -$Id: comman.scm,v 1.77 1993/10/18 23:19:30 cph Exp $ +$Id: comman.scm,v 1.78 1994/03/08 20:15:54 cph Exp $ -Copyright (c) 1986, 1989-1993 Massachusetts Institute of Technology +Copyright (c) 1986, 1989-94 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -195,4 +195,13 @@ of that license should have been included along with this file. (define (->variable object) (if (variable? object) object - (name->variable object))) \ No newline at end of file + (name->variable object))) + +(define (variable-permanent-local! variable) + (hash-table/put! permanent-local-variables variable #t)) + +(define (variable-permanent-local? variable) + (hash-table/get permanent-local-variables variable #f)) + +(define permanent-local-variables + (make-eq-hash-table)) \ No newline at end of file -- 2.25.1