diff --git a/collects/drscheme/private/main.ss b/collects/drscheme/private/main.ss index 60b1943265..df9699a5fa 100644 --- a/collects/drscheme/private/main.ss +++ b/collects/drscheme/private/main.ss @@ -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) diff --git a/collects/drscheme/tool-lib.ss b/collects/drscheme/tool-lib.ss index db0805f209..6225106e24 100644 --- a/collects/drscheme/tool-lib.ss +++ b/collects/drscheme/tool-lib.ss @@ -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}