aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-03-15 22:10:54 +0000
committerKarl Heuer1995-03-15 22:10:54 +0000
commit514354e97c828423a9295080e560f3407cb5500d (patch)
tree71a8ce7746a2188de028c7625c33511decd1e888 /src
parentf443c1706ed2107a9801614af9de833fdaa28cac (diff)
downloademacs-514354e97c828423a9295080e560f3407cb5500d.tar.gz
emacs-514354e97c828423a9295080e560f3407cb5500d.zip
(make_lispy_event): Do mouse code only if HAVE_MOUSE.
(make_lispy_movement): Define only if HAVE_MOUSE.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 2388482e8a3..25b56f88952 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -491,7 +491,9 @@ static int readable_events ();
491static Lisp_Object read_char_x_menu_prompt (); 491static Lisp_Object read_char_x_menu_prompt ();
492static Lisp_Object read_char_minibuf_menu_prompt (); 492static Lisp_Object read_char_minibuf_menu_prompt ();
493static Lisp_Object make_lispy_event (); 493static Lisp_Object make_lispy_event ();
494#ifdef HAVE_MOUSE
494static Lisp_Object make_lispy_movement (); 495static Lisp_Object make_lispy_movement ();
496#endif
495static Lisp_Object modify_event_symbol (); 497static Lisp_Object modify_event_symbol ();
496static Lisp_Object make_lispy_switch_frame (); 498static Lisp_Object make_lispy_switch_frame ();
497static int parse_solitary_modifier (); 499static int parse_solitary_modifier ();
@@ -2914,7 +2916,7 @@ make_lispy_event (event)
2914 / sizeof (lispy_function_keys[0]))); 2916 / sizeof (lispy_function_keys[0])));
2915 break; 2917 break;
2916 2918
2917#if defined (MULTI_FRAME) || defined (HAVE_MOUSE) 2919#ifdef HAVE_MOUSE
2918 /* A mouse click. Figure out where it is, decide whether it's 2920 /* A mouse click. Figure out where it is, decide whether it's
2919 a press, click or drag, and build the appropriate structure. */ 2921 a press, click or drag, and build the appropriate structure. */
2920 case mouse_click: 2922 case mouse_click:
@@ -3154,7 +3156,7 @@ make_lispy_event (event)
3154 Qnil)); 3156 Qnil));
3155 } 3157 }
3156 } 3158 }
3157#endif /* MULTI_FRAME or HAVE_MOUSE */ 3159#endif /* HAVE_MOUSE */
3158 3160
3159 /* The 'kind' field of the event is something we don't recognize. */ 3161 /* The 'kind' field of the event is something we don't recognize. */
3160 default: 3162 default:
@@ -3162,7 +3164,7 @@ make_lispy_event (event)
3162 } 3164 }
3163} 3165}
3164 3166
3165#if defined (MULTI_FRAME) || defined (HAVE_MOUSE) 3167#ifdef HAVE_MOUSE
3166 3168
3167static Lisp_Object 3169static Lisp_Object
3168make_lispy_movement (frame, bar_window, part, x, y, time) 3170make_lispy_movement (frame, bar_window, part, x, y, time)
@@ -3253,7 +3255,7 @@ make_lispy_movement (frame, bar_window, part, x, y, time)
3253 } 3255 }
3254} 3256}
3255 3257
3256#endif /* neither MULTI_FRAME nor HAVE_MOUSE */ 3258#endif /* HAVE_MOUSE */
3257 3259
3258/* Construct a switch frame event. */ 3260/* Construct a switch frame event. */
3259static Lisp_Object 3261static Lisp_Object