]> gitweb.factorcode.org Git - factor.git/commitdiff
Change prompt to something we can copy/paste back into the Factor repl. Add auto...
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 29 Oct 2011 07:08:35 +0000 (00:08 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 29 Oct 2011 08:05:38 +0000 (01:05 -0700)
basis/listener/listener.factor
core/parser/parser.factor

index bd47f63aa835214b7eab01718bdc6d2e41e8b171..248e267c0a2f34df8141d90aea8eec6e224c6639 100644 (file)
@@ -12,8 +12,8 @@ GENERIC: stream-read-quot ( stream -- quot/f )
 GENERIC# prompt. 1 ( stream prompt -- )
 
 : prompt ( -- str )
-    manifest get current-vocab>> [ name>> ] [ "" ] if*
-    auto-use? get [ " - auto" append ] when "( " " )" surround ;
+    manifest get current-vocab>> [ name>> "IN: " prepend ] [ "" ] if* 
+    auto-use? get [ " auto-use" append ] when ;
 
 M: object prompt.
     nip H{ { background T{ rgba f 1 0.7 0.7 1 } } } format bl
index b31a6ef4bcf20865e679d728eb0359e5c276757b..c3af80eb750bb5cda1880cd95b4a9ab4542505c8 100644 (file)
@@ -22,6 +22,8 @@ M: parsing-word stack-effect drop ( parsed -- parsed ) ;
 
 SYMBOL: auto-use?
 
+: auto-use ( -- ) auto-use? on ;
+
 : no-word-restarted ( restart-value -- word )
     dup word? [
         dup vocabulary>>