1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 04:10:27 -08:00
Commit graph

39 commits

Author SHA1 Message Date
Glenn Morris
684d6f5bcc Switch license to GPLv3 or later. 2007-07-25 05:19:07 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
Eli Zaretskii
b33e80aa31 (Fw16_set_clipboard_data): Fix the call to sit_for as per the calling sequence
changed on 2006-07-11.
2006-11-25 14:30:18 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
b45b1e81c9 (syms_of_win16select): Fix docstring for `selection-coding-system'. 2002-10-14 11:01:17 +00:00
Juanma Barranquero
b1abeb713f (syms_of_win16select): Fix spacing. 2002-09-06 09:04:40 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Juanma Barranquero
f7d05dc449 Include composite.h 2002-06-24 07:56:18 +00:00
Kenichi Handa
ee826e00e3 (Fw16_get_clipboard_data): Disable composition handling. 2002-06-24 00:36:20 +00:00
Eli Zaretskii
8de1855e88 Fix whitespace. 2002-05-17 13:17:21 +00:00
Eli Zaretskii
b72d987068 (Fw16_get_clipboard_data): Fix last change. 2002-02-23 08:55:52 +00:00
Eli Zaretskii
3276b4fe6e (Fw16_set_clipboard_data): Run pre-write-conversion
on the string before encoding it.
(Fw16_get_clipboard_data): Run post-read-conversion on the string
after decoding it.
2002-02-22 14:09:07 +00:00
Pavel Janík
70da46c31c Change doc-string comments to new style' [w/doc:' keyword]. 2001-12-11 06:23:50 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Gerd Moellmann
a97569cbf2 Use SYMBOL_VALUE/ SET_SYMBOL_VALUE macros instead of accessing
symbols' value directly.
2001-10-05 09:51:48 +00:00
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