diff options
| author | Richard M. Stallman | 1996-01-05 07:19:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-05 07:19:49 +0000 |
| commit | 5d0ba25bace0692c9eac5fb54aa6167a5436a32c (patch) | |
| tree | b2297f68eff64551d6db6737e42de06ddb8abddc /src | |
| parent | beaff27bd6c07f294dddc1836e491ba4e67d6a0a (diff) | |
| download | emacs-5d0ba25bace0692c9eac5fb54aa6167a5436a32c.tar.gz emacs-5d0ba25bace0692c9eac5fb54aa6167a5436a32c.zip | |
Undo previous change, except for comments and doc strings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xselect.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/xselect.c b/src/xselect.c index da22c715af2..a42d7f2e086 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -384,7 +384,7 @@ x_get_local_selection (selection_symbol, target_type) | |||
| 384 | 384 | ||
| 385 | /* Subroutines of x_reply_selection_request. */ | 385 | /* Subroutines of x_reply_selection_request. */ |
| 386 | 386 | ||
| 387 | /* Send a SelectionNotify event to the requester with property=None, | 387 | /* Send a SelectionNotify event to the requestor with property=None, |
| 388 | meaning we were unable to do what they wanted. */ | 388 | meaning we were unable to do what they wanted. */ |
| 389 | 389 | ||
| 390 | static void | 390 | static void |
| @@ -394,14 +394,14 @@ x_decline_selection_request (event) | |||
| 394 | XSelectionEvent reply; | 394 | XSelectionEvent reply; |
| 395 | reply.type = SelectionNotify; | 395 | reply.type = SelectionNotify; |
| 396 | reply.display = SELECTION_EVENT_DISPLAY (event); | 396 | reply.display = SELECTION_EVENT_DISPLAY (event); |
| 397 | reply.requester = SELECTION_EVENT_REQUESTER (event); | 397 | reply.requestor = SELECTION_EVENT_REQUESTOR (event); |
| 398 | reply.selection = SELECTION_EVENT_SELECTION (event); | 398 | reply.selection = SELECTION_EVENT_SELECTION (event); |
| 399 | reply.time = SELECTION_EVENT_TIME (event); | 399 | reply.time = SELECTION_EVENT_TIME (event); |
| 400 | reply.target = SELECTION_EVENT_TARGET (event); | 400 | reply.target = SELECTION_EVENT_TARGET (event); |
| 401 | reply.property = None; | 401 | reply.property = None; |
| 402 | 402 | ||
| 403 | BLOCK_INPUT; | 403 | BLOCK_INPUT; |
| 404 | XSendEvent (reply.display, reply.requester, False, 0L, | 404 | XSendEvent (reply.display, reply.requestor, False, 0L, |
| 405 | (XEvent *) &reply); | 405 | (XEvent *) &reply); |
| 406 | XFlush (reply.display); | 406 | XFlush (reply.display); |
| 407 | UNBLOCK_INPUT; | 407 | UNBLOCK_INPUT; |
| @@ -498,7 +498,7 @@ x_reply_selection_request (event, format, data, size, type) | |||
| 498 | { | 498 | { |
| 499 | XSelectionEvent reply; | 499 | XSelectionEvent reply; |
| 500 | Display *display = SELECTION_EVENT_DISPLAY (event); | 500 | Display *display = SELECTION_EVENT_DISPLAY (event); |
| 501 | Window window = SELECTION_EVENT_REQUESTER (event); | 501 | Window window = SELECTION_EVENT_REQUESTOR (event); |
| 502 | int bytes_remaining; | 502 | int bytes_remaining; |
| 503 | int format_bytes = format/8; | 503 | int format_bytes = format/8; |
| 504 | int max_bytes = SELECTION_QUANTUM (display); | 504 | int max_bytes = SELECTION_QUANTUM (display); |
| @@ -509,7 +509,7 @@ x_reply_selection_request (event, format, data, size, type) | |||
| 509 | 509 | ||
| 510 | reply.type = SelectionNotify; | 510 | reply.type = SelectionNotify; |
| 511 | reply.display = display; | 511 | reply.display = display; |
| 512 | reply.requester = window; | 512 | reply.requestor = window; |
| 513 | reply.selection = SELECTION_EVENT_SELECTION (event); | 513 | reply.selection = SELECTION_EVENT_SELECTION (event); |
| 514 | reply.time = SELECTION_EVENT_TIME (event); | 514 | reply.time = SELECTION_EVENT_TIME (event); |
| 515 | reply.target = SELECTION_EVENT_TARGET (event); | 515 | reply.target = SELECTION_EVENT_TARGET (event); |
| @@ -1030,7 +1030,7 @@ fetch_multiple_target (event) | |||
| 1030 | XSelectionRequestEvent *event; | 1030 | XSelectionRequestEvent *event; |
| 1031 | { | 1031 | { |
| 1032 | Display *display = event->display; | 1032 | Display *display = event->display; |
| 1033 | Window window = event->requester; | 1033 | Window window = event->requestor; |
| 1034 | Atom target = event->target; | 1034 | Atom target = event->target; |
| 1035 | Atom selection_atom = event->selection; | 1035 | Atom selection_atom = event->selection; |
| 1036 | int result; | 1036 | int result; |
| @@ -1085,10 +1085,10 @@ static Lisp_Object | |||
| 1085 | x_get_foreign_selection (selection_symbol, target_type) | 1085 | x_get_foreign_selection (selection_symbol, target_type) |
| 1086 | Lisp_Object selection_symbol, target_type; | 1086 | Lisp_Object selection_symbol, target_type; |
| 1087 | { | 1087 | { |
| 1088 | Window requester_window = FRAME_X_WINDOW (selected_frame); | 1088 | Window requestor_window = FRAME_X_WINDOW (selected_frame); |
| 1089 | Display *display = FRAME_X_DISPLAY (selected_frame); | 1089 | Display *display = FRAME_X_DISPLAY (selected_frame); |
| 1090 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (selected_frame); | 1090 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (selected_frame); |
| 1091 | Time requester_time = last_event_timestamp; | 1091 | Time requestor_time = last_event_timestamp; |
| 1092 | Atom target_property = dpyinfo->Xatom_EMACS_TMP; | 1092 | Atom target_property = dpyinfo->Xatom_EMACS_TMP; |
| 1093 | Atom selection_atom = symbol_to_x_atom (dpyinfo, display, selection_symbol); | 1093 | Atom selection_atom = symbol_to_x_atom (dpyinfo, display, selection_symbol); |
| 1094 | Atom type_atom; | 1094 | Atom type_atom; |
| @@ -1104,11 +1104,11 @@ x_get_foreign_selection (selection_symbol, target_type) | |||
| 1104 | BLOCK_INPUT; | 1104 | BLOCK_INPUT; |
| 1105 | x_catch_errors (display); | 1105 | x_catch_errors (display); |
| 1106 | XConvertSelection (display, selection_atom, type_atom, target_property, | 1106 | XConvertSelection (display, selection_atom, type_atom, target_property, |
| 1107 | requester_window, requester_time); | 1107 | requestor_window, requestor_time); |
| 1108 | XFlush (display); | 1108 | XFlush (display); |
| 1109 | 1109 | ||
| 1110 | /* Prepare to block until the reply has been read. */ | 1110 | /* Prepare to block until the reply has been read. */ |
| 1111 | reading_selection_window = requester_window; | 1111 | reading_selection_window = requestor_window; |
| 1112 | reading_which_selection = selection_atom; | 1112 | reading_which_selection = selection_atom; |
| 1113 | XCONS (reading_selection_reply)->car = Qnil; | 1113 | XCONS (reading_selection_reply)->car = Qnil; |
| 1114 | 1114 | ||
| @@ -1142,7 +1142,7 @@ x_get_foreign_selection (selection_symbol, target_type) | |||
| 1142 | 1142 | ||
| 1143 | /* Otherwise, the selection is waiting for us on the requested property. */ | 1143 | /* Otherwise, the selection is waiting for us on the requested property. */ |
| 1144 | return | 1144 | return |
| 1145 | x_get_window_property_as_lisp_data (display, requester_window, | 1145 | x_get_window_property_as_lisp_data (display, requestor_window, |
| 1146 | target_property, target_type, | 1146 | target_property, target_type, |
| 1147 | selection_atom); | 1147 | selection_atom); |
| 1148 | } | 1148 | } |
| @@ -1697,7 +1697,7 @@ void | |||
| 1697 | x_handle_selection_notify (event) | 1697 | x_handle_selection_notify (event) |
| 1698 | XSelectionEvent *event; | 1698 | XSelectionEvent *event; |
| 1699 | { | 1699 | { |
| 1700 | if (event->requester != reading_selection_window) | 1700 | if (event->requestor != reading_selection_window) |
| 1701 | return; | 1701 | return; |
| 1702 | if (event->selection != reading_which_selection) | 1702 | if (event->selection != reading_which_selection) |
| 1703 | return; | 1703 | return; |