Fix crashes in xdialog_show (and other places) with xterm-mouse-mode.
authorKaroly Lorentey <lorentey@elte.hu>
Sun, 11 Sep 2005 03:15:42 +0000 (03:15 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Sun, 11 Sep 2005 03:15:42 +0000 (03:15 +0000)
commit62af879c72eb791a0e0096ae2c739e8c2649d2fc
treea9693d099cfd030230b0ab688c2f6ad7114775ef
parent6bac16160743017637d0a77399cd4530f454e74b
Fix crashes in xdialog_show (and other places) with xterm-mouse-mode.

* src/dispextern.h (get_tty_device): Declare.

* src/dispnew.c (Fsend_string_to_terminal): Add optional TERMINAL parameter.

* src/fns.c (Fy_or_n_p, Fyes_or_no_p): Don't try to open an X dialog on
  tty terminals.

* src/term.c (get_tty_device): Remove static qualifier.

* src/xmenu.c (create_and_show_dialog, create_and_show_popup_menu)
  (free_frame_menubar, mouse_position_for_popup, set_frame_menubar)
  (update_frame_menubar, x_activate_menubar, xdialog_show, xmenu_show):
  Abort when given a non-X frame.

* src/xmenu.c (Fx_popup_menu, Fx_popup_dialog): Throw an error when run
  on a non-X frame.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-410
src/dispextern.h
src/dispnew.c
src/fns.c
src/term.c
src/xmenu.c