13434
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
1 /* Win32 Selection processing for emacs
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
2 Copyright (C) 1993, 1994 Free Software Foundation.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
3
|
14186
|
4 This file is part of GNU Emacs.
|
|
5
|
|
6 GNU Emacs is free software; you can redistribute it and/or modify
|
|
7 it under the terms of the GNU General Public License as published by
|
|
8 the Free Software Foundation; either version 2, or (at your option)
|
|
9 any later version.
|
|
10
|
|
11 GNU Emacs is distributed in the hope that it will be useful,
|
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 GNU General Public License for more details.
|
|
15
|
|
16 You should have received a copy of the GNU General Public License
|
|
17 along with GNU Emacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
13434
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
20
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
21 /* Written by Kevin Gallo */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
22
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
23 #include <config.h>
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
24 #include "lisp.h"
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
25 #include "w32term.h" /* for all of the win32 includes */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
26 #include "dispextern.h" /* frame.h seems to want this */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
27 #include "frame.h" /* Need this to get the X window of selected_frame */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
28 #include "blockinput.h"
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
29
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
30 #if 0
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
31 DEFUN ("win32-open-clipboard", Fwin32_open_clipboard, Swin32_open_clipboard, 0, 1, 0,
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
32 "This opens the clipboard with the given frame pointer.")
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
33 (frame)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
34 Lisp_Object frame;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
35 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
36 BOOL ok = FALSE;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
37
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
38 if (!NILP (frame))
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
39 CHECK_LIVE_FRAME (frame, 0);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
40
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
41 BLOCK_INPUT;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
42
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
43 ok = OpenClipboard ((!NILP (frame) && FRAME_WIN32_P (XFRAME (frame))) ? FRAME_WIN32_WINDOW (XFRAME (frame)) : NULL);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
44
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
45 UNBLOCK_INPUT;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
46
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
47 return (ok ? frame : Qnil);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
48 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
49
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
50 DEFUN ("win32-empty-clipboard", Fwin32_empty_clipboard, Swin32_empty_clipboard, 0, 0, 0,
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
51 "This empties the clipboard and assigns ownership to the window which opened the clipboard.")
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
52 ()
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
53 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
54 BOOL ok = FALSE;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
55
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
56 BLOCK_INPUT;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
57
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
58 ok = EmptyClipboard ();
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
59
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
60 UNBLOCK_INPUT;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
61
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
62 return (ok ? Qt : Qnil);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
63 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
64
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
65 DEFUN ("win32-close-clipboard", Fwin32_close_clipboard, Swin32_close_clipboard, 0, 0, 0,
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
66 "This closes the clipboard.")
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
67 ()
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
68 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
69 BOOL ok = FALSE;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
70
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
71 BLOCK_INPUT;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
72
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
73 ok = CloseClipboard ();
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
74
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
75 UNBLOCK_INPUT;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
76
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
77 return (ok ? Qt : Qnil);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
78 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
79
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
80 #endif
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
81
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
82 DEFUN ("win32-set-clipboard-data", Fwin32_set_clipboard_data, Swin32_set_clipboard_data, 1, 2, 0,
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
83 "This sets the clipboard data to the given text.")
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
84 (string, frame)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
85 Lisp_Object string, frame;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
86 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
87 BOOL ok = TRUE;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
88 HANDLE htext;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
89
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
90 CHECK_STRING (string, 0);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
91
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
92 if (!NILP (frame))
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
93 CHECK_LIVE_FRAME (frame, 0);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
94
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
95 BLOCK_INPUT;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
96
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
97 /* Allocate twice the amount so we can convert lf to cr-lf */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
98
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
99 if ((htext = GlobalAlloc (GMEM_MOVEABLE | GMEM_DDESHARE, (2 * XSTRING (string)->size) + 1)) == NULL)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
100 goto error;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
101
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
102 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
103 unsigned char *lptext;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
104
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
105 if ((lptext = (unsigned char *)GlobalLock (htext)) == NULL)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
106 goto error;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
107
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
108 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
109 int i = XSTRING (string)->size;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
110 int newsize = XSTRING (string)->size;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
111 register char *p1 = XSTRING (string)->data;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
112 register char *p2 = lptext;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
113
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
114 while (i--)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
115 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
116 if (*p1 == '\n')
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
117 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
118 newsize++;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
119 *p2++ = '\r';
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
120 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
121
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
122 *p2++ = *p1++;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
123 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
124
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
125 *p2 = 0;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
126 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
127
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
128 GlobalUnlock (htext);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
129 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
130
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
131 if (!OpenClipboard ((!NILP (frame) && FRAME_WIN32_P (XFRAME (frame))) ? FRAME_WIN32_WINDOW (XFRAME (frame)) : NULL))
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
132 goto error;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
133
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
134 ok = EmptyClipboard () && SetClipboardData (CF_TEXT, htext);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
135
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
136 CloseClipboard ();
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
137
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
138 if (ok) goto done;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
139
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
140 error:
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
141
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
142 ok = FALSE;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
143 if (htext) GlobalFree (htext);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
144
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
145 done:
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
146 UNBLOCK_INPUT;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
147
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
148 return (ok ? string : Qnil);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
149 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
150
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
151 DEFUN ("win32-get-clipboard-data", Fwin32_get_clipboard_data, Swin32_get_clipboard_data, 0, 1, 0,
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
152 "This gets the clipboard data in text format.")
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
153 (frame)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
154 Lisp_Object frame;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
155 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
156 HANDLE htext;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
157 Lisp_Object ret = Qnil;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
158
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
159 if (!NILP (frame))
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
160 CHECK_LIVE_FRAME (frame, 0);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
161
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
162 BLOCK_INPUT;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
163
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
164 if (!OpenClipboard ((!NILP (frame) && FRAME_WIN32_P (XFRAME (frame))) ? FRAME_WIN32_WINDOW (XFRAME (frame)) : NULL))
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
165 goto done;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
166
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
167 if ((htext = GetClipboardData (CF_TEXT)) == NULL)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
168 goto closeclip;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
169
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
170
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
171 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
172 unsigned char *lptext;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
173 int nbytes;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
174
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
175 if ((lptext = (unsigned char *)GlobalLock (htext)) == NULL)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
176 goto closeclip;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
177
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
178 nbytes = strlen (lptext);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
179
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
180 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
181 char *buf = (char *) xmalloc (nbytes);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
182 register char *p1 = lptext;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
183 register char *p2 = buf;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
184 int i = nbytes;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
185
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
186 if (buf == NULL) goto closeclip;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
187
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
188 while (i--)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
189 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
190 if (p1[0] == '\r' && i && p1[1] == '\n')
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
191 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
192 p1++;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
193 i--;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
194 nbytes--;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
195 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
196
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
197 *p2++ = *p1++;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
198 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
199
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
200 ret = make_string (buf, nbytes);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
201
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
202 xfree (buf);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
203 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
204
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
205 GlobalUnlock (htext);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
206 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
207
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
208 closeclip:
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
209 CloseClipboard ();
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
210
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
211 done:
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
212 UNBLOCK_INPUT;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
213
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
214 return (ret);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
215 }
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
216
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
217 void
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
218 syms_of_win32select ()
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
219 {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
220 #if 0
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
221 defsubr (&Swin32_open_clipboard);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
222 defsubr (&Swin32_empty_clipboard);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
223 defsubr (&Swin32_close_clipboard);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
224 #endif
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
225 defsubr (&Swin32_set_clipboard_data);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
226 defsubr (&Swin32_get_clipboard_data);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
227 }
|