diff options
| author | Kim F. Storm | 2005-03-31 10:11:14 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-03-31 10:11:14 +0000 |
| commit | c22237f77ec94f5339311c1a3a7cb904b7c3f6ec (patch) | |
| tree | 01db053bcca92d55ef41e88bc52b6d494b038b9e /src | |
| parent | f793f88572253947eff8d61d2ce28ffcee04ecb8 (diff) | |
| download | emacs-c22237f77ec94f5339311c1a3a7cb904b7c3f6ec.tar.gz emacs-c22237f77ec94f5339311c1a3a7cb904b7c3f6ec.zip | |
(Qmouse_fixup_help_message): New var.
(syms_of_keyboard): Intern and staticpro it.
(show_help_echo): Apply mouse-fixup-help-message to help string.
Diffstat (limited to 'src')
| -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 f9b0a843de5..f1a131a6f4e 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -523,6 +523,10 @@ Lisp_Object Qmake_frame_visible; | |||
| 523 | Lisp_Object Qselect_window; | 523 | Lisp_Object Qselect_window; |
| 524 | Lisp_Object Qhelp_echo; | 524 | Lisp_Object Qhelp_echo; |
| 525 | 525 | ||
| 526 | #ifdef HAVE_MOUSE | ||
| 527 | Lisp_Object Qmouse_fixup_help_message; | ||
| 528 | #endif | ||
| 529 | |||
| 526 | /* Symbols to denote kinds of events. */ | 530 | /* Symbols to denote kinds of events. */ |
| 527 | Lisp_Object Qfunction_key; | 531 | Lisp_Object Qfunction_key; |
| 528 | Lisp_Object Qmouse_click; | 532 | Lisp_Object Qmouse_click; |
| @@ -2304,6 +2308,11 @@ show_help_echo (help, window, object, pos, ok_to_overwrite_keystroke_echo) | |||
| 2304 | return; | 2308 | return; |
| 2305 | } | 2309 | } |
| 2306 | 2310 | ||
| 2311 | #ifdef HAVE_MOUSE | ||
| 2312 | if (!noninteractive && STRINGP (help)) | ||
| 2313 | help = call1 (Qmouse_fixup_help_message, help); | ||
| 2314 | #endif | ||
| 2315 | |||
| 2307 | if (STRINGP (help) || NILP (help)) | 2316 | if (STRINGP (help) || NILP (help)) |
| 2308 | { | 2317 | { |
| 2309 | if (!NILP (Vshow_help_function)) | 2318 | if (!NILP (Vshow_help_function)) |
| @@ -10875,6 +10884,11 @@ syms_of_keyboard () | |||
| 10875 | Qmenu_bar = intern ("menu-bar"); | 10884 | Qmenu_bar = intern ("menu-bar"); |
| 10876 | staticpro (&Qmenu_bar); | 10885 | staticpro (&Qmenu_bar); |
| 10877 | 10886 | ||
| 10887 | #ifdef HAVE_MOUSE | ||
| 10888 | Qmouse_fixup_help_message = intern ("mouse-fixup-help-message"); | ||
| 10889 | staticpro (&Qmouse_fixup_help_message); | ||
| 10890 | #endif | ||
| 10891 | |||
| 10878 | Qabove_handle = intern ("above-handle"); | 10892 | Qabove_handle = intern ("above-handle"); |
| 10879 | staticpro (&Qabove_handle); | 10893 | staticpro (&Qabove_handle); |
| 10880 | Qhandle = intern ("handle"); | 10894 | Qhandle = intern ("handle"); |