is a variable whose value is used to determine which heads Inactivate should ignore.
$InactivateExclusions
is a variable whose value is used to determine which heads Inactivate should ignore.
Details and Options
- To use $InactivateExclusions, you first need to load the Developer Utilities Package using Needs["Developer`"].
- $InactivateExclusions contains a list of pairs of the form {h,extype} where h is a symbol and extype is either "Symbol" or "Expression". The pair {h,"Symbol"} indicates that Inactivate should ignore the head h itself but not its contents, whereas the pair {h,"Expression"} indicates that Inactivate should ignore any part of the input with head h.
- $InactivateExclusions can be restored to its default value using Unset.
Examples
open all close allBasic Examples (2)
Force all symbols to be inactivated:
Needs["Developer`"];
Block[{$InactivateExclusions = {}}, Inactivate[{g[1 + 1], h[2x]}]]Normally List would be ignored:
Inactivate[{g[1 + 1], h[2x]}]Ignore List but not its contents:
Needs["Developer`"]
Block[{$InactivateExclusions = {{List, "Symbol"}}}, Inactivate[{g[1 + 1], h[2x]}]]Ignore List and its contents:
Block[{$InactivateExclusions = {{List, "Expression"}}}, Inactivate[{g[1 + 1], h[2x]}]]Scope (2)
Ignore g and its contents, and ignore h but not its contents:
Needs["Developer`"]
Block[{$InactivateExclusions = {{g, "Expression"}, {h, "Symbol"}}}, Inactivate[{g[1 + 1], h[2x]}]]Ignore these functions in addition to the normal defaults:
Needs["Developer`"]
Block[{$InactivateExclusions = Join[$InactivateExclusions, {{g, "Expression"}, {h, "Symbol"}}]}, Inactivate[{g[1 + 1], h[2x]}]]Needs["Developer`"]
$InactivateExclusions = {}Inactivate[{a, b}]Restore $InactivateExclusions to its default value:
$InactivateExclusions=.Now List is ignored:
Inactivate[{a, b}]Related Guides
Text
Wolfram Research (2014), $InactivateExclusions, Wolfram Language function, https://reference.wolfram.com/language/Developer/ref/$InactivateExclusions.html.
CMS
Wolfram Language. 2014. "$InactivateExclusions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Developer/ref/$InactivateExclusions.html.
APA
Wolfram Language. (2014). $InactivateExclusions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Developer/ref/$InactivateExclusions.html
BibTeX
@misc{reference.wolfram_2026_$inactivateexclusions, author="Wolfram Research", title="{$InactivateExclusions}", year="2014", howpublished="\url{https://reference.wolfram.com/language/Developer/ref/$InactivateExclusions.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_$inactivateexclusions, organization={Wolfram Research}, title={$InactivateExclusions}, year={2014}, url={https://reference.wolfram.com/language/Developer/ref/$InactivateExclusions.html}, note=[Accessed: 15-June-2026]}