From: Jason Rumney Date: Mon, 25 Jul 2005 22:17:02 +0000 (+0000) Subject: (w32_menu_display_help): Suppress tooltip when navigating menus with X-Git-Tag: emacs-pretest-22.0.90~7879 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=94c7f25790c1cca8337250b31a75b9869d967b1e;p=emacs.git (w32_menu_display_help): Suppress tooltip when navigating menus with the keyboard. --- diff --git a/src/ChangeLog b/src/ChangeLog index c5053161c83..ec3ecb56660 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-07-25 Jason Rumney + + * w32menu.c (w32_menu_display_help): Suppress tooltip when + navigating menus with the keyboard. + 2005-07-23 Richard M. Stallman * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer. diff --git a/src/w32menu.c b/src/w32menu.c index 065355f8755..0e4902b6ce4 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -2418,8 +2418,11 @@ w32_menu_display_help (HWND owner, HMENU menu, UINT item, UINT flags) struct frame *f = x_window_to_frame (&one_w32_display_info, owner); Lisp_Object frame, help; - /* No help echo on owner-draw menu items. */ - if (flags & MF_OWNERDRAW || flags & MF_POPUP) + /* No help echo on owner-draw menu items, or when the keyboard is used + to navigate the menus, since tooltips are distracting if they pop + up elsewhere. */ + if (flags & MF_OWNERDRAW || flags & MF_POPUP + || !(flags & MF_MOUSESELECT)) help = Qnil; else {