Function: dictionary-switch-tooltip-mode
dictionary-switch-tooltip-mode is a byte-compiled function defined in
dictionary.el.gz.
Signature
(dictionary-switch-tooltip-mode STATE)
Documentation
Turn dictionary tooltip mode on or off depending on STATE.
It is normally called internally with a non-nil value to enable the
tooltip mode. The hook function uses the value of the variable
dictionary-tooltip-mode(var)/dictionary-tooltip-mode(fun) to decide if some action must be taken.
When disabling the tooltip mode, that variable will be set to nil.
Source Code
;; Defined in /usr/src/emacs/lisp/net/dictionary.el.gz
(defun dictionary-switch-tooltip-mode (state)
"Turn dictionary tooltip mode on or off depending on STATE.
It is normally called internally with a non-nil value to enable the
tooltip mode. The hook function uses the value of the variable
`dictionary-tooltip-mode' to decide if some action must be taken.
When disabling the tooltip mode, that variable will be set to nil."
(tooltip-mode state)
(if state
(add-hook 'tooltip-functions #'dictionary-display-tooltip)
(remove-hook 'tooltip-functions #'dictionary-display-tooltip)))