Mercurial > emacs
comparison src/w32select.c @ 109351:c8a969d13eda
merge trunk
| author | Kenichi Handa <handa@etlken> |
|---|---|
| date | Fri, 09 Jul 2010 15:55:27 +0900 |
| parents | 8cfee7d2955f |
| children | 228a5fa4eda0 |
comparison
equal
deleted
inserted
replaced
| 109350:c11d07f3d731 | 109351:c8a969d13eda |
|---|---|
| 679 | 679 |
| 680 | 680 |
| 681 DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, | 681 DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, |
| 682 Sw32_set_clipboard_data, 1, 2, 0, | 682 Sw32_set_clipboard_data, 1, 2, 0, |
| 683 doc: /* This sets the clipboard data to the given text. */) | 683 doc: /* This sets the clipboard data to the given text. */) |
| 684 (string, ignored) | 684 (Lisp_Object string, Lisp_Object ignored) |
| 685 Lisp_Object string, ignored; | |
| 686 { | 685 { |
| 687 BOOL ok = TRUE; | 686 BOOL ok = TRUE; |
| 688 int nbytes; | 687 int nbytes; |
| 689 unsigned char *src; | 688 unsigned char *src; |
| 690 unsigned char *dst; | 689 unsigned char *dst; |
| 800 | 799 |
| 801 | 800 |
| 802 DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, | 801 DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, |
| 803 Sw32_get_clipboard_data, 0, 1, 0, | 802 Sw32_get_clipboard_data, 0, 1, 0, |
| 804 doc: /* This gets the clipboard data in text format. */) | 803 doc: /* This gets the clipboard data in text format. */) |
| 805 (ignored) | 804 (Lisp_Object ignored) |
| 806 Lisp_Object ignored; | |
| 807 { | 805 { |
| 808 HGLOBAL htext; | 806 HGLOBAL htext; |
| 809 Lisp_Object ret = Qnil; | 807 Lisp_Object ret = Qnil; |
| 810 UINT actual_clipboard_type; | 808 UINT actual_clipboard_type; |
| 811 int use_configured_coding_system = 1; | 809 int use_configured_coding_system = 1; |
| 1025 The arg should be the name of the selection in question, typically one of | 1023 The arg should be the name of the selection in question, typically one of |
| 1026 the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'. | 1024 the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'. |
| 1027 \(Those are literal upper-case symbol names, since that's what X expects.) | 1025 \(Those are literal upper-case symbol names, since that's what X expects.) |
| 1028 For convenience, the symbol nil is the same as `PRIMARY', | 1026 For convenience, the symbol nil is the same as `PRIMARY', |
| 1029 and t is the same as `SECONDARY'. */) | 1027 and t is the same as `SECONDARY'. */) |
| 1030 (selection) | 1028 (Lisp_Object selection) |
| 1031 Lisp_Object selection; | |
| 1032 { | 1029 { |
| 1033 CHECK_SYMBOL (selection); | 1030 CHECK_SYMBOL (selection); |
| 1034 | 1031 |
| 1035 /* Return nil for PRIMARY and SECONDARY selections; for CLIPBOARD, check | 1032 /* Return nil for PRIMARY and SECONDARY selections; for CLIPBOARD, check |
| 1036 if the clipboard currently has valid text format contents. */ | 1033 if the clipboard currently has valid text format contents. */ |
