1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 15:52:00 -08:00
Commit graph

36 commits

Author SHA1 Message Date
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
Jason Rumney
52c7f9eea2 2004-11-08 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
* w32select.c: Summary: Thorough rework to implement Unicode
        clipboard operations and delayed rendering.

        Drop last_clipboard_text and related code, keep track of
        ownership via clipboard_owner instead.  Drop old #if0
        sections.

        (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
        (clipboard_owner, modifying_clipboard, cfg_coding_system)
        (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
        (current_coding_system, current_requires_encoding)
        (current_num_nls, current_clipboard_type, current_lcid): New
        static variables.

        (convert_to_handle_as_ascii, convert_to_handle_as_coded)
        (render, render_all, run_protected, lisp_error_handler)
        (owner_callback, create_owner, setup_config)
        (enum_locale_callback, cp_from_locale, coding_from_cp): New
        local functions.

        (term_w32select, globals_of_w32select): New global functions.

        (Fw32_set_clipboard_data): Ignore parameter FRAME, use
        clipboard_owner instead.  Use delayed rendering and provide
        all text formats.  Provide CF_LOCALE if necessary.

        (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
        CF_LOCALE.  Fall back to CF_TEXT, if CF_UNICODETEXT is not
        available.  Force DOS line-ends for decoding.

        (Fx_selection_exists_p): Handle CF_UNICODETEXT.

        (syms_of_w32select): Init and register new variables.

        * w32.h: Add prototypes for globals_of_w32select and
        term_w32select.  Make the neighboring K&R declarations into
        prototypes, too.

        * emacs.c: Include w32.h to get function prototypes.
        (main): Call globals_of_w32select.

        * w32.c (term_ntproc): Call term_w32select.

        * mule-cmds.el (set-locale-environment): Remove call to
        set-selection-coding-system on Windows.

        * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
2005-02-15 23:19:26 +00:00
Kenichi Handa
4121d6122b (Fw32_set_clipboard_data): Update `nbytes' correctly
after getting a new string by pre-write-conversion.
2004-06-30 23:30:39 +00:00
Jason Rumney
6383ca22fc (Fw32_set_clipboard_data): Get sequence number after closing the clipboard. 2004-04-18 18:34:03 +00:00
Jason Rumney
2883d84228 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
* w32fns.c (x_to_w32_font): Likewise.
2004-02-03 23:44:47 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Jason Rumney
ee79d1aa9c (last_clipboard_sequence_number): New variable.
(Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
number if possible.
2003-07-06 22:01:49 +00:00
Juanma Barranquero
41a48e45f5 (syms_of_win32select): Fix docstring for `selection-coding-system'. 2002-10-14 11:02:07 +00:00
Juanma Barranquero
3b32ae2caa (syms_of_w32select): Fix spacing. 2002-09-06 09:04:56 +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
87c1450664 (Fw32_get_clipboard_data): Disable composition handling. 2002-06-24 00:37:03 +00:00
Jason Rumney
aab7e392f5 (Fw32_set_clipboard_data): Run pre-write-conversion
on the string before encoding it.
(Fw32_get_clipboard_data): Run post-read-conversion on the string
after decoding it.
2002-02-23 18:12:30 +00:00
Jason Rumney
33f096701c Change doc-string comments to new style'. [w/doc:' keyword]. Doc fixes. 2001-11-12 23:57:09 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Jason Rumney
06466d9ad1 (Fw32_set_clipboard_data): Save a copy of what is put on the clipboard.
(Fw32_get_clipboard_data): Compare data on clipboard with saved copy
of what Emacs last put there. If they are the same, do not use the
clipboard copy to avoid losing data due to coding conversions.
2000-11-21 19:18:13 +00:00
Andrew Innes
3e4731a35a Include keyboard.h before frame.h. 2000-08-22 23:45:16 +00:00
Jason Rumney
11f292ed17 (Fw32_set_clipboard_data): Change QNil to Qnil. 2000-05-31 18:09:57 +00:00
Kenichi Handa
69ebbf81b1 (Fw32_set_clipboard_data): Setup members
src_multibyte and dst_multibyte of coding.  Adjusted for the
change for find_charset_in_str.
(Fw32_get_clipboard_data): Likewise.
2000-05-20 00:07:08 +00:00
Jason Rumney
aba6b952ac (Fw32_set_clipboard_data): Update call to find_charset_in_str. 2000-01-23 03:23:12 +00:00
Andrew Innes
43df7d0b43 (Fw32_set_clipboard_data): Undo last change to add
nlines to encoding_buffer_size (real bug was in a ccl program in
lisp/international/coding.el).
1999-05-02 10:30:22 +00:00
Andrew Innes
0ece9ef6bf (Fw32_set_clipboard_data): Take into account line
ends when calculating clipboard storage needed for non-ASCII text.
1999-03-25 22:59:18 +00:00
Kenichi Handa
2798f18161 (Fw32_set_clipboard_data): Call find_charset_in_str
with MULTIBYTE arg 0.
1998-12-15 04:35:38 +00:00
Geoff Voelker
c0ca703bd4 (Fw32_get_clipboard_data): Do not delete isolated CR
characters, only convert CRLF to LF.
1998-12-09 00:03:09 +00:00
Geoff Voelker
93cbf229f9 (Vnext_selection_coding_system): New variable.
(syms_of_w32select): DEFVAR_LISP it.
(Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
non-nil.  Always convert multibyte strings.
(Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
non-nil.  Always convert a string that includes non-ASCII characters.
1998-10-28 03:50:07 +00:00
Kenichi Handa
3c8cb3123a (Fw32_set_clipboard_data): Call find_charset_in_str with CMPCHARP arg 0. 1998-10-12 12:00:44 +00:00
Richard M. Stallman
72aca5fa28 (Vselection_coding_system): Renamed from Vclipboard_coding_system.
(syms_of_w32select): No need to staticpro Vselection_coding_system.
1998-08-05 22:32:02 +00:00
Andrew Innes
0108f679e4 (Fw32_set_clipboard_data): Set Vlast_coding_system_used.
(Fw32_get_clipboard_data): Likewise.
1998-07-12 20:24:23 +00:00
Andrew Innes
bbb059f390 Include buffer.h, charset.h, and coding.h.
(Vclipboard_coding_system): New variable.
(syms_of_w32select): DEF_VAR it.
(Fw32_set_clipboard_data): Encode string using
Vclipboard_coding_system if necessary.
(Fw32_get_clipboard_data): Decode clipboard contents using
Vclipboard_coding_system if necessary.
1998-06-22 17:43:15 +00:00
Geoff Voelker
e9e23e2348 Change all uses of win95, winnt, and win32
into Windows 95, Windows NT, and W32, respectively.
Expand "win" substring in variables referring to Microsoft Windows
constructs into "windows".
Canonicalize header comments to use same terminology.
1997-01-20 00:38:22 +00:00
Geoff Voelker
fbd6baedb5 Change identifiers of the form win32* to w32*. 1996-11-19 04:59:23 +00:00
Karl Heuer
9aa94bd50c (QCLIPBOARD): New symbol.
(Fx_selection_exists_p): New function.
(syms_of_win32select): Initialize/staticpro and defsubr them.
1996-05-14 19:01:53 +00:00
Geoff Voelker
69cddef069 (Fwin32_set_clipboard_data, Fwin32_get_clipboard_data):
Calculate exact size of clipboard string with CRs removed or inserted.
1996-05-03 18:45:04 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Geoff Voelker
ee78dc3223 Initial revision 1995-11-07 07:52:28 +00:00