diff options
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index f29a7676d34..39891b1a95d 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -514,6 +514,10 @@ Lisp_Object Qmake_frame_visible; | |||
| 514 | Lisp_Object Qselect_window; | 514 | Lisp_Object Qselect_window; |
| 515 | Lisp_Object Qhelp_echo; | 515 | Lisp_Object Qhelp_echo; |
| 516 | 516 | ||
| 517 | #ifdef HAVE_MOUSE | ||
| 518 | Lisp_Object Qmouse_fixup_help_message; | ||
| 519 | #endif | ||
| 520 | |||
| 517 | /* Symbols to denote kinds of events. */ | 521 | /* Symbols to denote kinds of events. */ |
| 518 | Lisp_Object Qfunction_key; | 522 | Lisp_Object Qfunction_key; |
| 519 | Lisp_Object Qmouse_click; | 523 | Lisp_Object Qmouse_click; |
| @@ -2298,6 +2302,11 @@ show_help_echo (help, window, object, pos, ok_to_overwrite_keystroke_echo) | |||
| 2298 | return; | 2302 | return; |
| 2299 | } | 2303 | } |
| 2300 | 2304 | ||
| 2305 | #ifdef HAVE_MOUSE | ||
| 2306 | if (!noninteractive && STRINGP (help)) | ||
| 2307 | help = call1 (Qmouse_fixup_help_message, help); | ||
| 2308 | #endif | ||
| 2309 | |||
| 2301 | if (STRINGP (help) || NILP (help)) | 2310 | if (STRINGP (help) || NILP (help)) |
| 2302 | { | 2311 | { |
| 2303 | if (!NILP (Vshow_help_function)) | 2312 | if (!NILP (Vshow_help_function)) |
| @@ -11010,6 +11019,11 @@ syms_of_keyboard () | |||
| 11010 | Qmenu_bar = intern ("menu-bar"); | 11019 | Qmenu_bar = intern ("menu-bar"); |
| 11011 | staticpro (&Qmenu_bar); | 11020 | staticpro (&Qmenu_bar); |
| 11012 | 11021 | ||
| 11022 | #ifdef HAVE_MOUSE | ||
| 11023 | Qmouse_fixup_help_message = intern ("mouse-fixup-help-message"); | ||
| 11024 | staticpro (&Qmouse_fixup_help_message); | ||
| 11025 | #endif | ||
| 11026 | |||
| 11013 | Qabove_handle = intern ("above-handle"); | 11027 | Qabove_handle = intern ("above-handle"); |
| 11014 | staticpro (&Qabove_handle); | 11028 | staticpro (&Qabove_handle); |
| 11015 | Qhandle = intern ("handle"); | 11029 | Qhandle = intern ("handle"); |