Making tooltips appear in the echo area

By default Emacs will display its tooltips in a separate frame. If you want to force Emacs to use the echo area exclusively, you can do that with this handy code snippet:
(tooltip-mode -1)
(setq tooltip-use-echo-area t)