Add context stuff, but don't use it.
[clinton/lisp-on-lines.git] / src / ucw / contextl-components.lisp
diff --git a/src/ucw/contextl-components.lisp b/src/ucw/contextl-components.lisp
new file mode 100644 (file)
index 0000000..80431c3
--- /dev/null
@@ -0,0 +1,16 @@
+(in-package :lisp-on-lines-ucw)
+
+#+nil (defclass contextl-session-frame (ucw-core::standard-session-frame)
+  ())
+
+#+nil(defmethod ucw-core::register-callback-in-frame ((frame contextl-session-frame) callback &key &allow-other-keys)
+  (let ((lambda (ucw::callback-lambda callback)))
+    (let ((context (contextl:current-layer-context)))
+      (setf (ucw::callback-lambda callback) 
+           (lambda (arg)
+             (contextl:funcall-with-layer-context context lambda arg)))
+      (call-next-method))))
+
+#+nil(setf ucw-core::*session-frame-class* 'contextl-session-frame)
+
+