Define VARIABLE-PERMANENT-LOCAL! and VARIABLE-PERMANENT-LOCAL?.
authorChris Hanson <org/chris-hanson/cph>
Tue, 8 Mar 1994 20:15:54 +0000 (20:15 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 8 Mar 1994 20:15:54 +0000 (20:15 +0000)
v7/src/edwin/comman.scm

index 06e88b7a3bd440338b201c64555f70ea0721cc41..a0fae7030d4c6e81930b8375f54e0b3f344aea38 100644 (file)
@@ -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