diff options
| author | Stefan Monnier | 2013-11-28 20:22:40 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2013-11-28 20:22:40 -0500 |
| commit | 7cdf484be3f4408b2bdf58db5bd4ae896cf262e5 (patch) | |
| tree | 3ee6b7c62a3385518f09e5ade6a879bd1b41f53c /src/keyboard.c | |
| parent | ef869611180c862f67ef1e004553668523615d37 (diff) | |
| download | emacs-7cdf484be3f4408b2bdf58db5bd4ae896cf262e5.tar.gz emacs-7cdf484be3f4408b2bdf58db5bd4ae896cf262e5.zip | |
* configure.ac (HAVE_MENUS): Remove.
* src/xmenu.c (Fmenu_or_popup_active_p):
* src/window.c (Fset_window_configuration):
* src/menu.c (Fx_popup_menu, Fx_popup_dialog):
* src/keyboard.c (record_menu_key, read_char_x_menu_prompt):
* src/fns.c (Fyes_or_no_p):
* src/editfns.c (Fmessage_box, Fmessage_or_box):
* src/alloc.c (make_save_ptr_ptr):
* src/xdisp.c, src/w32menu.c, src/term.c, src/xterm.h, src/xterm.c:
Remove HAVE_MENUS.
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index be863adcb96..2e16a872190 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3222,8 +3222,6 @@ read_char (int commandflag, Lisp_Object map, | |||
| 3222 | RETURN_UNGCPRO (c); | 3222 | RETURN_UNGCPRO (c); |
| 3223 | } | 3223 | } |
| 3224 | 3224 | ||
| 3225 | #ifdef HAVE_MENUS | ||
| 3226 | |||
| 3227 | /* Record a key that came from a mouse menu. | 3225 | /* Record a key that came from a mouse menu. |
| 3228 | Record it for echoing, for this-command-keys, and so on. */ | 3226 | Record it for echoing, for this-command-keys, and so on. */ |
| 3229 | 3227 | ||
| @@ -3254,13 +3252,11 @@ record_menu_key (Lisp_Object c) | |||
| 3254 | /* Record this character as part of the current key. */ | 3252 | /* Record this character as part of the current key. */ |
| 3255 | add_command_key (c); | 3253 | add_command_key (c); |
| 3256 | 3254 | ||
| 3257 | /* Re-reading in the middle of a command */ | 3255 | /* Re-reading in the middle of a command. */ |
| 3258 | last_input_event = c; | 3256 | last_input_event = c; |
| 3259 | num_input_events++; | 3257 | num_input_events++; |
| 3260 | } | 3258 | } |
| 3261 | 3259 | ||
| 3262 | #endif /* HAVE_MENUS */ | ||
| 3263 | |||
| 3264 | /* Return true if should recognize C as "the help character". */ | 3260 | /* Return true if should recognize C as "the help character". */ |
| 3265 | 3261 | ||
| 3266 | static bool | 3262 | static bool |
| @@ -8359,7 +8355,6 @@ read_char_x_menu_prompt (Lisp_Object map, | |||
| 8359 | if (! menu_prompting) | 8355 | if (! menu_prompting) |
| 8360 | return Qnil; | 8356 | return Qnil; |
| 8361 | 8357 | ||
| 8362 | #ifdef HAVE_MENUS | ||
| 8363 | /* If we got to this point via a mouse click, | 8358 | /* If we got to this point via a mouse click, |
| 8364 | use a real menu for mouse selection. */ | 8359 | use a real menu for mouse selection. */ |
| 8365 | if (EVENT_HAS_PARAMETERS (prev_event) | 8360 | if (EVENT_HAS_PARAMETERS (prev_event) |
| @@ -8405,7 +8400,6 @@ read_char_x_menu_prompt (Lisp_Object map, | |||
| 8405 | *used_mouse_menu = 1; | 8400 | *used_mouse_menu = 1; |
| 8406 | return value; | 8401 | return value; |
| 8407 | } | 8402 | } |
| 8408 | #endif /* HAVE_MENUS */ | ||
| 8409 | return Qnil ; | 8403 | return Qnil ; |
| 8410 | } | 8404 | } |
| 8411 | 8405 | ||