diff --git a/contrib/cont-responder/eval-responder.factor b/contrib/cont-responder/eval-responder.factor
index 1e7c268097..3960eba0a8 100644
--- a/contrib/cont-responder/eval-responder.factor
+++ b/contrib/cont-responder/eval-responder.factor
@@ -105,12 +105,17 @@ USE: sequences
[
write-eval-link |
] each
;
+: usages. ( word -- )
+ #! Write to output the words that use the given word, one
+ #! per line.
+ usages [ . ] each ;
+
: html-for-word-source ( word-string -- )
#! Return an html fragment dispaying the source
#! of the given word.
dup dup
[
- "responder" "browser" put
+ "browser" "responder" set
"Source" write |
[ [ parse ] [ [ "No such word" write ] [ car see ] ifte ] catch ] with-simple-html-output |
@@ -172,9 +177,9 @@ USE: sequences
#! Call the quotation using 'list' as the datastack
#! return the result datastack as a list.
datastack >r
- swap list>vector tuck vector-push
+ swap >vector tuck push
set-datastack call datastack >list
- r> >pop> >pop> tuck vector-push set-datastack ;
+ r> >pop> >pop> tuck push set-datastack ;
: do-eval ( list string -- list )
#! Evaluate the expression in 'string' using 'list' as
@@ -199,6 +204,12 @@ USE: sequences
#! This combinator will not compile.
dup slip forever ;
+: cons@ ( value name -- )
+ #! Get the value of the variable named by 'name'
+ #! from the current namespace and cons 'value' to its
+ #! current value.
+ dup get rot swons swap set ;
+
: run-eval-requester ( evaluator -- )
#! Enter a loop request an expression to
#! evaluate, and displaying the results.
diff --git a/contrib/cont-responder/live-updater-responder.factor b/contrib/cont-responder/live-updater-responder.factor
index aad1ef7e19..04e7e4a839 100644
--- a/contrib/cont-responder/live-updater-responder.factor
+++ b/contrib/cont-responder/live-updater-responder.factor
@@ -38,7 +38,7 @@ USE: prettyprint
#! Given a string that is a factor word, show the
#! aporpos of that word.
[
- "responder" "browser" put
+ "browser" "responder" set
stdio get [
apropos.