Patch the recipe of the "undo-tree" package.
Disable yasnippet in the term-mode.