diff options
| author | Jason Rumney | 2003-06-04 22:05:52 +0000 |
|---|---|---|
| committer | Jason Rumney | 2003-06-04 22:05:52 +0000 |
| commit | 9eb28007fb2735a255b57c01dcd3791ed57f628d (patch) | |
| tree | c74caee2201b9f3f5955f0598604b747428f8e9d /src | |
| parent | 1beaad814a4ac4fa48bc8659736de3bfaf8ae2cf (diff) | |
| download | emacs-9eb28007fb2735a255b57c01dcd3791ed57f628d.tar.gz emacs-9eb28007fb2735a255b57c01dcd3791ed57f628d.zip | |
(Qmouse_wheel, mouse_wheel_syms, lispy_mouse_wheel_names): Remove.
(syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
Always define drag_and_drop_syms.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index a09db16bc6d..f73c1b6cc03 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -547,9 +547,6 @@ Lisp_Object Qhelp_echo; | |||
| 547 | /* Symbols to denote kinds of events. */ | 547 | /* Symbols to denote kinds of events. */ |
| 548 | Lisp_Object Qfunction_key; | 548 | Lisp_Object Qfunction_key; |
| 549 | Lisp_Object Qmouse_click; | 549 | Lisp_Object Qmouse_click; |
| 550 | #if defined(MAC_OSX) | ||
| 551 | Lisp_Object Qmouse_wheel; | ||
| 552 | #endif | ||
| 553 | #ifdef WINDOWSNT | 550 | #ifdef WINDOWSNT |
| 554 | Lisp_Object Qlanguage_change; | 551 | Lisp_Object Qlanguage_change; |
| 555 | #endif | 552 | #endif |
| @@ -4438,9 +4435,6 @@ static Lisp_Object accent_key_syms; | |||
| 4438 | static Lisp_Object func_key_syms; | 4435 | static Lisp_Object func_key_syms; |
| 4439 | static Lisp_Object mouse_syms; | 4436 | static Lisp_Object mouse_syms; |
| 4440 | static Lisp_Object wheel_syms; | 4437 | static Lisp_Object wheel_syms; |
| 4441 | #if defined(MAC_OSX) | ||
| 4442 | static Lisp_Object mouse_wheel_syms; | ||
| 4443 | #endif | ||
| 4444 | static Lisp_Object drag_n_drop_syms; | 4438 | static Lisp_Object drag_n_drop_syms; |
| 4445 | 4439 | ||
| 4446 | /* This is a list of keysym codes for special "accent" characters. | 4440 | /* This is a list of keysym codes for special "accent" characters. |
| @@ -4899,21 +4893,6 @@ static char *lispy_wheel_names[] = | |||
| 4899 | "wheel-up", "wheel-down" | 4893 | "wheel-up", "wheel-down" |
| 4900 | }; | 4894 | }; |
| 4901 | 4895 | ||
| 4902 | #if defined(MAC_OSX) | ||
| 4903 | /* mouse-wheel events are generated by the wheel on devices such as | ||
| 4904 | the MS Intellimouse. The wheel sits in between the left and right | ||
| 4905 | mouse buttons, and is typically used to scroll or zoom the window | ||
| 4906 | underneath the pointer. mouse-wheel events specify the object on | ||
| 4907 | which they operate, and a delta corresponding to the amount and | ||
| 4908 | direction that the wheel is rotated. Clicking the mouse-wheel | ||
| 4909 | generates a mouse-2 event. */ | ||
| 4910 | static char *lispy_mouse_wheel_names[] = | ||
| 4911 | { | ||
| 4912 | "mouse-wheel" | ||
| 4913 | }; | ||
| 4914 | |||
| 4915 | #endif /* MAC_OSX */ | ||
| 4916 | |||
| 4917 | /* drag-n-drop events are generated when a set of selected files are | 4896 | /* drag-n-drop events are generated when a set of selected files are |
| 4918 | dragged from another application and dropped onto an Emacs window. */ | 4897 | dragged from another application and dropped onto an Emacs window. */ |
| 4919 | static char *lispy_drag_n_drop_names[] = | 4898 | static char *lispy_drag_n_drop_names[] = |
| @@ -5707,80 +5686,6 @@ make_lispy_event (event) | |||
| 5707 | } | 5686 | } |
| 5708 | } | 5687 | } |
| 5709 | #endif /* WINDOWSNT */ | 5688 | #endif /* WINDOWSNT */ |
| 5710 | #if defined(MAC_OSX) | ||
| 5711 | case MOUSE_WHEEL_EVENT: | ||
| 5712 | { | ||
| 5713 | enum window_part part; | ||
| 5714 | FRAME_PTR f = XFRAME (event->frame_or_window); | ||
| 5715 | Lisp_Object window; | ||
| 5716 | Lisp_Object posn; | ||
| 5717 | Lisp_Object head, position; | ||
| 5718 | int row, column; | ||
| 5719 | |||
| 5720 | /* Ignore mouse events that were made on frame that | ||
| 5721 | have been deleted. */ | ||
| 5722 | if (! FRAME_LIVE_P (f)) | ||
| 5723 | return Qnil; | ||
| 5724 | pixel_to_glyph_coords (f, XINT (event->x), XINT (event->y), | ||
| 5725 | &column, &row, NULL, 1); | ||
| 5726 | window = window_from_coordinates (f, XINT (event->x), | ||
| 5727 | XINT (event->y), | ||
| 5728 | &part, 0, 0, 0); | ||
| 5729 | |||
| 5730 | if (!WINDOWP (window)) | ||
| 5731 | { | ||
| 5732 | window = event->frame_or_window; | ||
| 5733 | posn = Qnil; | ||
| 5734 | } | ||
| 5735 | else | ||
| 5736 | { | ||
| 5737 | int pixcolumn, pixrow; | ||
| 5738 | column -= WINDOW_LEFT_EDGE_COL (XWINDOW (window)); | ||
| 5739 | row -= WINDOW_TOP_EDGE_LINE (XWINDOW (window)); | ||
| 5740 | glyph_to_pixel_coords (XWINDOW(window), column, row, | ||
| 5741 | &pixcolumn, &pixrow); | ||
| 5742 | XSETINT (event->x, pixcolumn); | ||
| 5743 | XSETINT (event->y, pixrow); | ||
| 5744 | |||
| 5745 | if (part == ON_MODE_LINE) | ||
| 5746 | posn = Qmode_line; | ||
| 5747 | else if (part == ON_VERTICAL_BORDER) | ||
| 5748 | posn = Qvertical_line; | ||
| 5749 | else if (part == ON_HEADER_LINE) | ||
| 5750 | posn = Qheader_line; | ||
| 5751 | else | ||
| 5752 | { | ||
| 5753 | Lisp_Object object; | ||
| 5754 | struct display_pos p; | ||
| 5755 | buffer_posn_from_coords (XWINDOW (window), &column, &row, | ||
| 5756 | &object, &p); | ||
| 5757 | posn = make_number (CHARPOS (p.pos)); | ||
| 5758 | } | ||
| 5759 | } | ||
| 5760 | |||
| 5761 | { | ||
| 5762 | Lisp_Object head, position; | ||
| 5763 | |||
| 5764 | position | ||
| 5765 | = Fcons (window, | ||
| 5766 | Fcons (posn, | ||
| 5767 | Fcons (Fcons (event->x, event->y), | ||
| 5768 | Fcons (make_number (event->timestamp), | ||
| 5769 | Qnil)))); | ||
| 5770 | |||
| 5771 | head = modify_event_symbol (0, event->modifiers, | ||
| 5772 | Qmouse_wheel, Qnil, | ||
| 5773 | lispy_mouse_wheel_names, | ||
| 5774 | &mouse_wheel_syms, 1); | ||
| 5775 | return Fcons (head, | ||
| 5776 | Fcons (position, | ||
| 5777 | /* Insert 1 here so event-click-count works. */ | ||
| 5778 | Fcons (make_number (1), | ||
| 5779 | Fcons (make_number (event->code), | ||
| 5780 | Qnil)))); | ||
| 5781 | } | ||
| 5782 | } | ||
| 5783 | #endif /* MAC_OSX */ | ||
| 5784 | 5689 | ||
| 5785 | case DRAG_N_DROP_EVENT: | 5690 | case DRAG_N_DROP_EVENT: |
| 5786 | { | 5691 | { |
| @@ -10868,10 +10773,6 @@ syms_of_keyboard () | |||
| 10868 | staticpro (&Qfunction_key); | 10773 | staticpro (&Qfunction_key); |
| 10869 | Qmouse_click = intern ("mouse-click"); | 10774 | Qmouse_click = intern ("mouse-click"); |
| 10870 | staticpro (&Qmouse_click); | 10775 | staticpro (&Qmouse_click); |
| 10871 | #if defined(MAC_OSX) | ||
| 10872 | Qmouse_wheel = intern ("mouse-wheel"); | ||
| 10873 | staticpro (&Qmouse_wheel); | ||
| 10874 | #endif | ||
| 10875 | #ifdef WINDOWSNT | 10776 | #ifdef WINDOWSNT |
| 10876 | Qlanguage_change = intern ("language-change"); | 10777 | Qlanguage_change = intern ("language-change"); |
| 10877 | staticpro (&Qlanguage_change); | 10778 | staticpro (&Qlanguage_change); |
| @@ -11022,12 +10923,8 @@ syms_of_keyboard () | |||
| 11022 | func_key_syms = Qnil; | 10923 | func_key_syms = Qnil; |
| 11023 | staticpro (&func_key_syms); | 10924 | staticpro (&func_key_syms); |
| 11024 | 10925 | ||
| 11025 | #if defined(MAC_OSX) | ||
| 11026 | mouse_wheel_syms = Qnil; | ||
| 11027 | staticpro (&mouse_wheel_syms); | ||
| 11028 | drag_n_drop_syms = Qnil; | 10926 | drag_n_drop_syms = Qnil; |
| 11029 | staticpro (&drag_n_drop_syms); | 10927 | staticpro (&drag_n_drop_syms); |
| 11030 | #endif | ||
| 11031 | 10928 | ||
| 11032 | unread_switch_frame = Qnil; | 10929 | unread_switch_frame = Qnil; |
| 11033 | staticpro (&unread_switch_frame); | 10930 | staticpro (&unread_switch_frame); |