aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2014-06-04 10:54:16 +0300
committerEli Zaretskii2014-06-04 10:54:16 +0300
commit5dff48b0f8a399899f72e1fcf2db0a552f071070 (patch)
treebfa2950c42f524231d64875e569f163ac47d4f7e /src
parentcfd794af4214ae0e5587ab8b1f4e5fcb355a0f12 (diff)
downloademacs-5dff48b0f8a399899f72e1fcf2db0a552f071070.tar.gz
emacs-5dff48b0f8a399899f72e1fcf2db0a552f071070.zip
Fix TTY menus on MS-Windows broken by last commit.
src/w32console.c (initialize_w32_display): Set the console menu_show_hook, otherwise TTY menus on w32 crash and burn.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32console.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bf46f8e7f1e..7903a0f5039 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-06-04 Eli Zaretskii <eliz@gnu.org>
2
3 * w32console.c (initialize_w32_display): Set the console
4 menu_show_hook, otherwise TTY menus are broken on w32.
5
12014-06-04 Dmitry Antipov <dmantipov@yandex.ru> 62014-06-04 Dmitry Antipov <dmantipov@yandex.ru>
2 7
3 Use terminal-specific hooks to display menus. 8 Use terminal-specific hooks to display menus.
diff --git a/src/w32console.c b/src/w32console.c
index e3ca2f86b8d..2fbc190ee2d 100644
--- a/src/w32console.c
+++ b/src/w32console.c
@@ -36,8 +36,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
36#include "termhooks.h" 36#include "termhooks.h"
37#include "termchar.h" 37#include "termchar.h"
38#include "dispextern.h" 38#include "dispextern.h"
39#include "menu.h" /* for tty_menu_show */
39#include "w32term.h" 40#include "w32term.h"
40#include "w32common.h" /* for os_subtype */ 41#include "w32common.h" /* for os_subtype */
41#include "w32inevt.h" 42#include "w32inevt.h"
42 43
43/* from window.c */ 44/* from window.c */
@@ -650,6 +651,7 @@ initialize_w32_display (struct terminal *term, int *width, int *height)
650 651
651 term->read_socket_hook = w32_console_read_socket; 652 term->read_socket_hook = w32_console_read_socket;
652 term->mouse_position_hook = w32_console_mouse_position; 653 term->mouse_position_hook = w32_console_mouse_position;
654 term->menu_show_hook = tty_menu_show;
653 655
654 /* The following are not used on the console. */ 656 /* The following are not used on the console. */
655 term->frame_rehighlight_hook = 0; 657 term->frame_rehighlight_hook = 0;