From: Gerd Moellmann Date: Fri, 14 Jul 2000 13:56:26 +0000 (+0000) Subject: (menu_highlight_callback): Use X-Git-Tag: emacs-pretest-21.0.90~2831 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=66ed7d9a154a512a37f9d705b7e581aa49ca3e6f;p=emacs.git (menu_highlight_callback): Use kbd_buffer_store_help_event instead of setting up and input_event structure manually. --- diff --git a/src/xmenu.c b/src/xmenu.c index c84a6d7b332..b4e92ef12cd 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1196,7 +1196,6 @@ menu_highlight_callback (widget, id, call_data) widget_value *wv = (widget_value *) call_data; struct frame *f; Lisp_Object frame, help; - struct input_event buf; /* Determine the frame for the help event. */ f = menubar_id_to_frame (id); @@ -1221,10 +1220,7 @@ menu_highlight_callback (widget, id, call_data) /* Store the help event. */ help = wv && wv->help ? build_string (wv->help) : Qnil; - buf.kind = HELP_EVENT; - buf.frame_or_window = frame; - buf.arg = help; - kbd_buffer_store_event (&buf); + kbd_buffer_store_help_event (frame, help); } /* This callback is called from the menu bar pulldown menu