From: Kim F. Storm Date: Thu, 31 Mar 2005 10:11:14 +0000 (+0000) Subject: (Qmouse_fixup_help_message): New var. X-Git-Tag: ttn-vms-21-2-B4~1336 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c22237f77ec94f5339311c1a3a7cb904b7c3f6ec;p=emacs.git (Qmouse_fixup_help_message): New var. (syms_of_keyboard): Intern and staticpro it. (show_help_echo): Apply mouse-fixup-help-message to help string. --- 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; Lisp_Object Qselect_window; Lisp_Object Qhelp_echo; +#ifdef HAVE_MOUSE +Lisp_Object Qmouse_fixup_help_message; +#endif + /* Symbols to denote kinds of events. */ Lisp_Object Qfunction_key; Lisp_Object Qmouse_click; @@ -2304,6 +2308,11 @@ show_help_echo (help, window, object, pos, ok_to_overwrite_keystroke_echo) return; } +#ifdef HAVE_MOUSE + if (!noninteractive && STRINGP (help)) + help = call1 (Qmouse_fixup_help_message, help); +#endif + if (STRINGP (help) || NILP (help)) { if (!NILP (Vshow_help_function)) @@ -10875,6 +10884,11 @@ syms_of_keyboard () Qmenu_bar = intern ("menu-bar"); staticpro (&Qmenu_bar); +#ifdef HAVE_MOUSE + Qmouse_fixup_help_message = intern ("mouse-fixup-help-message"); + staticpro (&Qmouse_fixup_help_message); +#endif + Qabove_handle = intern ("above-handle"); staticpro (&Qabove_handle); Qhandle = intern ("handle");