help.vocabs: tweak 'not loaded' message some more
parent
a1dfea7887
commit
d772bff8b9
basis/help/vocabs
|
@ -228,12 +228,16 @@ C: <vocab-author> vocab-author
|
||||||
] unless-empty ;
|
] unless-empty ;
|
||||||
|
|
||||||
: vocab-is-not-loaded ( vocab -- )
|
: vocab-is-not-loaded ( vocab -- )
|
||||||
"Words" $heading
|
"Not loaded" $heading
|
||||||
"You must first load (USE:) this vocab to browse its documentation/words."
|
"You must first load this vocabulary to browse its documentation and words."
|
||||||
print-element vocab-name "USE: " prepend 1array $code ;
|
print-element vocab-name "USE: " prepend 1array $code ;
|
||||||
|
|
||||||
: describe-words ( vocab -- )
|
: describe-words ( vocab -- )
|
||||||
dup vocab [ words $words ] [ vocab-is-not-loaded ] if ;
|
{
|
||||||
|
{ [ dup vocab ] [ words $words ] }
|
||||||
|
{ [ dup find-vocab-root ] [ vocab-is-not-loaded ] }
|
||||||
|
[ drop ]
|
||||||
|
} cond ;
|
||||||
|
|
||||||
: words. ( vocab -- )
|
: words. ( vocab -- )
|
||||||
last-element off
|
last-element off
|
||||||
|
|
Loading…
Reference in New Issue