summaryrefslogtreecommitdiff
path: root/src/w32select.c
Commit message (Collapse)AuthorAgeFilesLines
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-1/+2
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* 2004-11-08 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>Jason Rumney2005-02-151-249/+846
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* (Fw32_set_clipboard_data): Update `nbytes' correctlyKenichi Handa2004-06-301-1/+5
| | | | after getting a new string by pre-write-conversion.
* (Fw32_set_clipboard_data): Get sequence number after closing the clipboard.Jason Rumney2004-04-181-2/+9
|
* * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.Jason Rumney2004-02-031-0/+5
| | | | * w32fns.c (x_to_w32_font): Likewise.
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (last_clipboard_sequence_number): New variable.Jason Rumney2003-07-061-17/+35
| | | | | (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence number if possible.
* (syms_of_win32select): Fix docstring for `selection-coding-system'.Juanma Barranquero2002-10-141-35/+36
|
* (syms_of_w32select): Fix spacing.Juanma Barranquero2002-09-061-2/+2
|
* Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-6/+6
| | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* Include composite.hJuanma Barranquero2002-06-241-0/+1
|
* (Fw32_get_clipboard_data): Disable composition handling.Kenichi Handa2002-06-241-0/+4
|
* (Fw32_set_clipboard_data): Run pre-write-conversionJason Rumney2002-02-231-21/+24
| | | | | | on the string before encoding it. (Fw32_get_clipboard_data): Run post-read-conversion on the string after decoding it.
* Change doc-string comments to `new style'. [w/`doc:' keyword]. Doc fixes.Jason Rumney2001-11-121-25/+29
|
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-5/+5
|
* (Fw32_set_clipboard_data): Save a copy of what is put on the clipboard.Jason Rumney2000-11-211-10/+44
| | | | | | (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.
* Include keyboard.h before frame.h.Andrew Innes2000-08-221-0/+1
|
* (Fw32_set_clipboard_data): Change QNil to Qnil.Jason Rumney2000-05-311-1/+1
|
* (Fw32_set_clipboard_data): Setup membersKenichi Handa2000-05-201-14/+9
| | | | | | src_multibyte and dst_multibyte of coding. Adjusted for the change for find_charset_in_str. (Fw32_get_clipboard_data): Likewise.
* (Fw32_set_clipboard_data): Update call to find_charset_in_str.Jason Rumney2000-01-231-1/+1
|
* (Fw32_set_clipboard_data): Undo last change to addAndrew Innes1999-05-021-1/+1
| | | | | nlines to encoding_buffer_size (real bug was in a ccl program in lisp/international/coding.el).
* (Fw32_set_clipboard_data): Take into account lineAndrew Innes1999-03-251-11/+14
| | | | ends when calculating clipboard storage needed for non-ASCII text.
* (Fw32_set_clipboard_data): Call find_charset_in_strKenichi Handa1998-12-151-1/+1
| | | | with MULTIBYTE arg 0.
* (Fw32_get_clipboard_data): Do not delete isolated CRGeoff Voelker1998-12-091-14/+18
| | | | characters, only convert CRLF to LF.
* (Vnext_selection_coding_system): New variable.Geoff Voelker1998-10-281-5/+46
| | | | | | | | (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.
* (Fw32_set_clipboard_data): Call find_charset_in_str with CMPCHARP arg 0.Kenichi Handa1998-10-121-1/+1
|
* (Vselection_coding_system): Renamed from Vclipboard_coding_system.Richard M. Stallman1998-08-051-6/+5
| | | | (syms_of_w32select): No need to staticpro Vselection_coding_system.
* (Fw32_set_clipboard_data): Set Vlast_coding_system_used.Andrew Innes1998-07-121-0/+6
| | | | (Fw32_get_clipboard_data): Likewise.
* Include buffer.h, charset.h, and coding.h.Andrew Innes1998-06-221-67/+145
| | | | | | | | | (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.
* Change all uses of win95, winnt, and win32Geoff Voelker1997-01-201-1/+1
| | | | | | | 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.
* Change identifiers of the form win32* to w32*.Geoff Voelker1996-11-191-16/+16
|
* (QCLIPBOARD): New symbol.Karl Heuer1996-05-141-0/+43
| | | | | (Fx_selection_exists_p): New function. (syms_of_win32select): Initialize/staticpro and defsubr them.
* (Fwin32_set_clipboard_data, Fwin32_get_clipboard_data):Geoff Voelker1996-05-031-58/+87
| | | | Calculate exact size of clipboard string with CRs removed or inserted.
* Update FSF's address in the preamble.Erik Naggum1996-01-151-15/+16
|
* Initial revisionGeoff Voelker1995-11-071-0/+226