added search context capability

svn: r10916
This commit is contained in:
Eli Barzilay 2008-07-26 03:00:12 +00:00
parent bbf9376115
commit 63ecb0ec4d
2 changed files with 10 additions and 0 deletions

View File

@ -298,6 +298,10 @@
(or/c (cons/c string? string?) false/c)
(cons "(define" "(define ...)"))
(drscheme:language:register-capability 'drscheme:help-context-term
(or/c false/c string?)
"")
(drscheme:language:register-capability 'drscheme:special:insert-fraction (flat-contract boolean?) #t)
(drscheme:language:register-capability 'drscheme:special:insert-large-letters (flat-contract boolean?) #t)
(drscheme:language:register-capability 'drscheme:special:insert-lambda (flat-contract boolean?) #t)

View File

@ -991,6 +991,12 @@ all of the names in the tools library, for use defining keybindings
(cons "(define" "(define ...)")]{
specifies the prefix that the define popup should look for and what
label it should have, or @scheme[#f] if it should not appear at all}
@cap[drscheme:help-context-term (or/c false/c string?) #f]{
specifies a context query for documentation searches that are
initiated in this language, can be @scheme[#f] (no change to the
user's setting) or a string to be used as a context query (note: the
context is later maintained as a cookie, @scheme[""] is different
from @scheme[#f] in that it clears the stored context)}
@cap[drscheme:special:insert-fraction boolean? #t]{
determines if the insert fraction menu item in the special menu is
visible}