(syms_of_keyboard): New Lisp var command-hook-internal.
(command_loop_1): Use it when running the command hooks.
(read_key_sequence): Don't call echo_truncate the first time through.
(echo_truncate): Call truncate_echo_area.
Reshuffle functions; put new ones in #ifdef USE_X_TOOLKIT.
(Fx_popup_menu): Add USE_X_TOOLKIT conditional around new decls.
(string_width): New function.
(event_is_in_menu_item, map_event_to_object): Likewise.
(set_menu_items, free_menu_items, popup_selection_callback): Likewise.
(popup_down_callback, free_menubar_widget_value_tree): Likewise.
(update_one_frame_psheets, set_frame_menubar): Likewise.
(Fx_popup_menu, xmenu_show): Handle USE_X_TOOLKIT.
(dispatch_dummy_expose): New function.
(XMenu_xpos, XMenu_ypos): Change the values of the constant assignment.
(xmenu_show): Change the way to make the menubar to redraw itself by
generating a dummy expose event.
(XTupdate_end): No need to test updating_frame.
(construct_mouse_click): New function, in #ifdef USE_X_TOOLKIT.
(process_expose_from_menu): Likewise.
(XTread_socket, x_set_offset, x_set_window_size): Handle USE_X_TOOLKIT.
(x_raise_frame, x_lower_frame, x_make_frame_visible): Likewise.
(x_iconify_frame, x_destroy_window, x_wm_set_window_state): Likewise.
(x_term_init): Likewise.
(x_term_init): Pass argv, argc to XtAppInitialize with the display_name value.
Include syssignal.h.
The following belongs in a previous version's log entry:
(XTread_socket): temp_buffer and temp_index deleted.
Put all vendor-specific keys into the buffer.
(x_is_vendor_fkey): Function deleted.
(XTread_socket): Don't call it.
(otherobj): Use widgetobj.
(XOBJ): Undo previous change.
(LWLIB_OPTIONS): Define if not defined.
(LIBXT): New variable.
(LIBX): Use LIBXT.
(widget.o): New target.
(XOBJ) [USE_X_TOOLKIT]: Add widget.o.
(lwlibdir): New variable.
($(OLDXMENU)) [USE_X_TOOLKIT]: Alternate rule.
(OLDXMENU) [USE_X_TOOLKIT]: Alternate value.
(really-lwlib): New rule.
(HAVE_XSCREENNUMBEROFSCREEN): defined if X is used.
(LIB_X11_LIB, LIBX11_SYSTEM): override only if X is used.
(USG_SHARED_LIBRARIES): undefine only if X is used.
(redisplay_window) [USE_X_TOOLKIT]: Test FRAME_EXTERNAL_MENU_BAR.
(update_menu_bar) [USE_X_TOOLKIT]: Call set_frame_menubar.
(truncate_echo_area): New function.
(decode_mode_spec) [MSDOS]: Let 't' expand to 'T' for
text mode or 'B' for binary mode.
(decode_mode_spec) [not subprocesses]: Don't access Fprocess_status.