# What bug fixes can be implemented in init.m?

In comments on this question, Mr. Wizard suggested a community wiki to share the bug fixes/workarounds (or possibly other tricks) people load in their init.m. I think this could provide a nice resource.

-
I think this should probably be restricted to bug fixes and workarounds or it becomes too broad. –  Mr.Wizard Aug 16 '13 at 21:54
Should these be version-tagged? –  Yves Klett Aug 17 '13 at 16:54
@Yves I think they should, and so far it looks like everyone has already done that. –  Mr.Wizard Aug 17 '13 at 20:51

# Version 10

It is time to start setting up bug fixes and work-arounds for version 10.

• VisualizationUtilitiesOptionsDumpunitFormStringQ[HoldForm[s_]] = False

• SetSystemOptions["ParallelOptions" -> {"MachineFunctionParallelThreshold2" -> Infinity}]

• Fix TableAlignments -> Left not working -- code too long to include; provided in answer there

• Fix A bug in Commonest in version 10 (see link for an additional performance enhancement):

StatisticsDescriptiveDumpoCommonestSetLength[list_, 1] := Commonest[list][[{1}]]


# Version 7

As a version 7 user these likely don't apply to most users but here are mine:

• Fix Symbol name slow-down weirdness (hashing problem?):

SetSystemOptions["NeedNotReevaluateOptions"->{"UseSymbolLists"->True}];

• Fix a bug in FullSimplify:

Unprotect[HolonomicHolonomicFullSimplify];Clear[HolonomicHolonomicFullSimplify];

• Prevent Mathematica from eating all my RAM and freezing (most of the time):

\$Pre = Function[Null, MemoryConstrained[Unevaluated @ #, 2^32, "Memory Exceeded"], HoldAll]
`

I believe I used to have a few more but I must have removed them either because they caused problems or because I found them unnecessary.

-

Here is one that came from a Wolfram employee so it should be safe to add in version 9:

FindInstance returns Indeterminate in version 9, but not in 8

-

Here's a patch from Adam Strzebonski of Wolfram, which fixes a bug in RootReduce in 9.0.1.

ToNumberField won't recognize Root as explicit algebraic number

-