diff options
| author | Karl Heuer | 1995-03-15 22:10:54 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-03-15 22:10:54 +0000 |
| commit | 514354e97c828423a9295080e560f3407cb5500d (patch) | |
| tree | 71a8ce7746a2188de028c7625c33511decd1e888 /src | |
| parent | f443c1706ed2107a9801614af9de833fdaa28cac (diff) | |
| download | emacs-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.c | 10 |
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 (); | |||
| 491 | static Lisp_Object read_char_x_menu_prompt (); | 491 | static Lisp_Object read_char_x_menu_prompt (); |
| 492 | static Lisp_Object read_char_minibuf_menu_prompt (); | 492 | static Lisp_Object read_char_minibuf_menu_prompt (); |
| 493 | static Lisp_Object make_lispy_event (); | 493 | static Lisp_Object make_lispy_event (); |
| 494 | #ifdef HAVE_MOUSE | ||
| 494 | static Lisp_Object make_lispy_movement (); | 495 | static Lisp_Object make_lispy_movement (); |
| 496 | #endif | ||
| 495 | static Lisp_Object modify_event_symbol (); | 497 | static Lisp_Object modify_event_symbol (); |
| 496 | static Lisp_Object make_lispy_switch_frame (); | 498 | static Lisp_Object make_lispy_switch_frame (); |
| 497 | static int parse_solitary_modifier (); | 499 | static 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 | ||
| 3167 | static Lisp_Object | 3169 | static Lisp_Object |
| 3168 | make_lispy_movement (frame, bar_window, part, x, y, time) | 3170 | make_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. */ |
| 3259 | static Lisp_Object | 3261 | static Lisp_Object |