* lisp/tooltip.el (tooltip-event-buffer): Make sure 'posn-window' returns a window before calling 'window-buffer'. * lisp/net/dictionary.el (dictionary-default-dictionary) (dictionary-tooltip-dictionary): Doc fixes. (dictionary-tooltip-dictionary): Change default value to t, which means the same dictionary as 'dictionary-default-dictionary'. (dictionary-do-search): If NOMATCHING is non-nil, do not insert anything into the current buffer, as that is unexpected when showing definitions in tooltips. (dictionary-word-at-mouse-event): Be defensive about the values returned by 'tooltip-event-buffer' and 'posn-point': they can be unexpected when the mouse pointer is on the tool bar or mode line etc. (dictionary-display-tooltip): Ignore errors in this function. (dictionary-tooltip-mode): Ignore mouse-movement events on tool bar and tab-bar. (dictionary-dictionaries): Decode the server response to present dictionaries in human-readable form. Document in the doc string the format of the return value.
15 KiB
15 KiB