redefine – Conditional macro, etc., definitions
Defines commands \newdef, \newgdef and \newlet that warn the user if a command is redefined using them (if operating under LaTeX, \newcommand is similarly modified). In addition \newif, \newbox, \newcount, \newdimen, \newtoks are modified to detect an error if a conditional or register name is reused.
Maybe you are interested in the following packages as well.
- laps: Zero-width boxes for annotations, etc
- extradefs: A miscellany of support macros
- makerobust209: Make an existing LaTeX command robust
- balancedquotes: Code balanced quotes according to document language