summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp-mnt.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2024-05-10 15:56:30 +0300
committerEli Zaretskii <eliz@gnu.org>2024-05-10 15:56:30 +0300
commit3129fed4bec1137b7bb377594766b61ee76cd268 (patch)
treef2fdd3480f5e33fbae1f1c1fed902b69509d1f12 /lisp/emacs-lisp/lisp-mnt.el
parent0f67ddd8d9e855ce0b9c17a4a1410dbd40318055 (diff)
downloademacs-3129fed4bec1137b7bb377594766b61ee76cd268.tar.gz
emacs-3129fed4bec1137b7bb377594766b61ee76cd268.tar.bz2
emacs-3129fed4bec1137b7bb377594766b61ee76cd268.zip
Fix 'dictionary-tooltip-mode'
* 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.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
0 files changed, 0 insertions, 0 deletions