** An error in running pre-command-hook or post-command-hook
does clear the variable to nil. The documentation was wrong before.