Fix unrelated help text tooltips if a popup is shown during the delay
authorPo Lu <luangruo@yahoo.com>
Sat, 29 Jan 2022 10:53:28 +0000 (18:53 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 29 Jan 2022 10:57:08 +0000 (18:57 +0800)
commite380fb509b1c506e5745eafc61e053ca6455fe62
tree1f265140fe9b966361fbf4b3a9f39cbbc584e5f9
parent0a5ece3da157c5a33023dfdf6211fc34015f197d
Fix unrelated help text tooltips if a popup is shown during the delay

* doc/lispref/frames.texi (Pop-Up Menus): Document new hook.
* etc/NEWS: Announce `x-pre-popup-menu-hook'.
* lisp/tooltip.el (tooltip-mode): Make sure `tooltip-hide' is
run before any popup menu is displayed to prevent unrelated help
text from obscuring the popup menu if it pops up during the
tooltip delay.
* src/menu.c (x_popup_menu_1): Run said hook right before the
popup menu is displayed.
(syms_of_menu): New hook `x-pre-popup-menu-hook'.
doc/lispref/frames.texi
etc/NEWS
lisp/tooltip.el
src/menu.c