1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 19:31:02 -08:00
Commit graph

21 commits

Author SHA1 Message Date
Eli Zaretskii
aae41d97a4 (set_clipboard_data): If there's not enough memory
to put text into clipboard, return 1, as Fw16_set_clipboard_data
expects.  In case of other failures, return 3.
(system_error_msg): New error message.
(Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
system_error_msg.
2000-08-17 06:11:09 +00:00
Eli Zaretskii
1eed3a764f (Fw16_set_clipboard_data): Fix the change from 2000-05-20. 2000-05-25 10:56:36 +00:00
Kenichi Handa
b34cf36ca8 (Fw16_set_clipboard_data): Setup members
src_multibyte and dst_multibyte of coding.  Adjusted for the
change for find_charset_in_str.
(Fw16_get_clipboard_data): Likewise.
2000-05-20 00:05:51 +00:00
Eli Zaretskii
4029384bd4 (get_clipboard_data): Always stop at the first null byte. 1999-03-03 14:51:07 +00:00
Eli Zaretskii
cc6d8c5b60 (get_clipboard_data): Work around a bug in Windows95
DOS box which doubles the reported size of text in the clipboard.
1999-02-15 15:14:47 +00:00
Eli Zaretskii
5033894e97 (last_clipboard_text, clipboard_storage_size): New
static variables.
(set_clipboard_data): Save a copy of the text we put into
clipboard in last_clipboard_text.
(get_clipboard_data): If the clipboard text is identical to what
last_clipboard_text holds, pretend there's no data in the
clipboard.
1999-02-04 15:53:37 +00:00
Eli Zaretskii
ba92a4701a Fix last change. 1999-02-03 16:40:32 +00:00
Eli Zaretskii
c759462781 (Fw16_set_clipboard_data): When the text needs to be
encoded, set its pointer and size as returned by encode_coding.
1999-02-03 14:53:47 +00:00
Eli Zaretskii
0236e3f151 (set_clipboard_data): Correctly null-terminate the
string to be put into the Windows clipboard.  Use xbuf_addr.
1999-02-02 13:43:14 +00:00
Eli Zaretskii
0265f89f7c (set_clipboard_data): Terminate the text with a null
character.  Don't allow to put binary data into the clipboard.
Return zero in case of success, 1 or 2 otherwise.
(get_clipboard_data): Only bail out if the null character is in
the last 32-byte chunk of clipboard data
(Fw16_set_clipboard_data): Make ok and put_status be unsigned.  If
they save binary data, print a message in the echo area saying the
text was not put into the clipboard.
1999-01-06 10:14:25 +00:00
Kenichi Handa
42912be360 (Fw16_set_clipboard_data): Call find_charset_in_str
with MULTIBYTE arg 0.
1998-12-15 04:35:38 +00:00
Kenichi Handa
76be80e02b (Fw16_set_clipboard_data): Call find_charset_in_str with CMPCHARP arg 0. 1998-10-12 12:00:44 +00:00
Eli Zaretskii
9963e85930 (Vnext_selection_coding_system): New variable.
(syms_of_win16select): DEFVAR_LISP it.  No need to staticpro
Vselection_coding_system.
(Fw16_set_clipboard_data): Always convert multibyte strings.  Use
Vnext_selection_coding_system if non-nil.
(Fw16_get_clipboard_data): Always convert a string that includes
non-ASCII characters. Use Vnext_selection_coding_system if
non-nil.
1998-09-01 13:26:41 +00:00
Eli Zaretskii
199c7c44b9 (Fw16_set_clipboard_data, Fw16_get_clipboard_data, syms_of_win16select):
Rename Vclipboard_coding_system to Vselection_coding_system.
(Fw16_set_clipboard_data): Don't count trailing zero in the string
for the purposes of conversion.
1998-08-04 10:38:22 +00:00
Eli Zaretskii
538d05bb65 (set_clipboard_data, get_clipboard_data, Fw16_set_clipboard_data,
Fw16_get_clipboard_data, Fx_selection_exists_p): Use CF_OEMTEXT instead
of CF_TEXT.
1998-07-13 14:29:35 +00:00
Eli Zaretskii
583f5d53e6 (Vclipboard_coding_system): New variable.
(set_clipboard_data, set_clipboard_data): New parameter Raw
determines whether CRLF <-> NL translation needs to be done.  All
callers changed.
(Fw16_set_clipboard_data): Encode the text using
Vclipboard_coding_system, if necessary.
(Fw16_get_clipboard_data): Decode the text using
Vclipboard_coding_system, if necessary.
(syms_of_win16select): DEFVAR Vclipboard_coding_system and
staticpro it.
1998-07-09 14:02:15 +00:00
Eli Zaretskii
767079a8c6 (alloc_xfer_buf): If want_size is more than 1MB,
return immediately with failure.
(Fw16_set_clipboard_data, Fw16_get_clipboard_data): Replace win16
with w16.
1998-04-22 13:39:59 +00:00
Eli Zaretskii
31354c30f6 (Fwin16_set_clipboard_data): Call UNBLOCK_INPUT before calling sit_for.
(Fwin16_get_clipboard_data, Fwin16_set_clipboard_data):	Balance
the calls to BLOCK_INPUT and UNBLOCK_INPUT.
1998-04-22 10:26:10 +00:00
Karl Heuer
a63f12f992 (Fwin16_set_clipboard_data): Call message2 with 3
arguments.
1998-04-08 06:50:34 +00:00
Richard M. Stallman
ad66baa4c7 (Fwin16_set_clipboard_data): Pass new arg to sit_for. 1997-05-27 01:52:10 +00:00
Eli Zaretskii
21cfcccfb1 Initial revision 1997-04-14 10:59:48 +00:00