diff options
| author | Jim Blandy | 1992-10-31 05:42:28 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-10-31 05:42:28 +0000 |
| commit | de02ad0bc7f6b4f198ce9eea520c1eb5e4ab8286 (patch) | |
| tree | 3b34f3c3729c531dadd7cdbeeb155386233c3271 /src | |
| parent | a6605e5ccaf78d2bd65d7bb5528a06d5e3dfc1db (diff) | |
| download | emacs-de02ad0bc7f6b4f198ce9eea520c1eb5e4ab8286.tar.gz emacs-de02ad0bc7f6b4f198ce9eea520c1eb5e4ab8286.zip | |
* xselect.c (own_selection): selection_type is an X Atom value,
not a Lisp_Object.
(x_selection_arrival): Declare this static, and add a forward
declaration at the top of the page.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xselect.c.old | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/xselect.c.old b/src/xselect.c.old index 6adedd96cf3..3ed83c9c05a 100644 --- a/src/xselect.c.old +++ b/src/xselect.c.old | |||
| @@ -165,9 +165,12 @@ own_selection (selection_type, time) | |||
| 165 | { | 165 | { |
| 166 | Window owner_window, selecting_window; | 166 | Window owner_window, selecting_window; |
| 167 | 167 | ||
| 168 | if ((EQ (selection_type, Qprimary) && !NILP (Vx_selection_value)) | 168 | if ((selection_type == XA_PRIMARY |
| 169 | || ((EQ (selection_type, Qsecondary)) && !NILP (Vx_secondary_selection_value)) | 169 | && !NILP (Vx_selection_value)) |
| 170 | || ((EQ (selection_type, Qclipboard)) && !NILP (Vx_clipboard_value))) | 170 | || (selection_type == XA_SECONDARY |
| 171 | && !NILP (Vx_secondary_selection_value)) | ||
| 172 | || (selection_type == Xatom_clipboard | ||
| 173 | && !NILP (Vx_clipboard_value))) | ||
| 171 | return 1; | 174 | return 1; |
| 172 | 175 | ||
| 173 | selecting_window = FRAME_X_WINDOW (selected_frame); | 176 | selecting_window = FRAME_X_WINDOW (selected_frame); |
| @@ -570,6 +573,8 @@ x_send_incremental (event) | |||
| 570 | 573 | ||
| 571 | /* Requesting the value of a selection. */ | 574 | /* Requesting the value of a selection. */ |
| 572 | 575 | ||
| 576 | static Lisp_Object x_selection_arrival (); | ||
| 577 | |||
| 573 | /* Predicate function used to match a requested event. */ | 578 | /* Predicate function used to match a requested event. */ |
| 574 | 579 | ||
| 575 | Bool | 580 | Bool |
| @@ -668,7 +673,7 @@ selection, but optional argument TYPE may specify secondary or clipboard.") | |||
| 668 | error ("Invalid X selection type"); | 673 | error ("Invalid X selection type"); |
| 669 | } | 674 | } |
| 670 | 675 | ||
| 671 | Lisp_Object | 676 | static Lisp_Object |
| 672 | x_selection_arrival (event, requestor_window, requestor_time) | 677 | x_selection_arrival (event, requestor_window, requestor_time) |
| 673 | register XSelectionEvent *event; | 678 | register XSelectionEvent *event; |
| 674 | Window requestor_window; | 679 | Window requestor_window; |