aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorRichard M. Stallman1992-09-14 22:10:55 +0000
committerRichard M. Stallman1992-09-14 22:10:55 +0000
commit72cea080f2fc1a97763272f1f044b240e6e65161 (patch)
treee8b298843bc771274b30c1564d18580e6ec51ec8 /src/keyboard.c
parent2c44309ae20a22e3e7eb5790ba851482a0e356e8 (diff)
downloademacs-72cea080f2fc1a97763272f1f044b240e6e65161.tar.gz
emacs-72cea080f2fc1a97763272f1f044b240e6e65161.zip
(read_char_menu_prompt): Use X menu code if HAVE_X_WINDOWS and not NO_X_MENU.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 5a2e635f843..e1124a4facd 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2322,7 +2322,8 @@ read_char_menu_prompt (nmaps, maps, prev_event, used_mouse_menu)
2322 if (NILP (name)) 2322 if (NILP (name))
2323 return Qnil; 2323 return Qnil;
2324 2324
2325#ifdef HAVE_X_MENU 2325#ifdef HAVE_X_WINDOW
2326#ifndef NO_X_MENU
2326 /* If we got to this point via a mouse click, 2327 /* If we got to this point via a mouse click,
2327 use a real menu for mouse selection. */ 2328 use a real menu for mouse selection. */
2328 if (XTYPE (prev_event) == Lisp_Cons) 2329 if (XTYPE (prev_event) == Lisp_Cons)
@@ -2344,7 +2345,8 @@ read_char_menu_prompt (nmaps, maps, prev_event, used_mouse_menu)
2344 *used_mouse_menu = 1; 2345 *used_mouse_menu = 1;
2345 return value; 2346 return value;
2346 } 2347 }
2347#endif /* HAVE_X_MENU */ 2348#endif /* not NO_X_MENU */
2349#endif /* HAVE_X_WINDOW */
2348 2350
2349 /* Prompt string always starts with map's prompt, and a space. */ 2351 /* Prompt string always starts with map's prompt, and a space. */
2350 strcpy (menu, XSTRING (name)->data); 2352 strcpy (menu, XSTRING (name)->data);