diff options
| author | Daniel Colascione | 2012-10-07 14:31:58 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2012-10-07 14:31:58 -0800 |
| commit | 36a305a723c63fd345be65c536c52fe9765c14be (patch) | |
| tree | fb89d9e103552863214c60297a65320917109357 /src/w32select.c | |
| parent | 2ab329f3b5d52a39f0a45c3d9c129f1c19560142 (diff) | |
| parent | 795b1482a9e314cda32d62ac2988f573d359366e (diff) | |
| download | emacs-36a305a723c63fd345be65c536c52fe9765c14be.tar.gz emacs-36a305a723c63fd345be65c536c52fe9765c14be.zip | |
Merge from trunk
Diffstat (limited to 'src/w32select.c')
| -rw-r--r-- | src/w32select.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/w32select.c b/src/w32select.c index b616f232eea..1690c3b7824 100644 --- a/src/w32select.c +++ b/src/w32select.c | |||
| @@ -396,7 +396,7 @@ run_protected (Lisp_Object (*code) (Lisp_Object), Lisp_Object arg) | |||
| 396 | extern int waiting_for_input; /* from keyboard.c */ | 396 | extern int waiting_for_input; /* from keyboard.c */ |
| 397 | int owfi; | 397 | int owfi; |
| 398 | 398 | ||
| 399 | BLOCK_INPUT; | 399 | block_input (); |
| 400 | 400 | ||
| 401 | /* Fsignal calls emacs_abort () if it sees that waiting_for_input is | 401 | /* Fsignal calls emacs_abort () if it sees that waiting_for_input is |
| 402 | set. */ | 402 | set. */ |
| @@ -407,7 +407,7 @@ run_protected (Lisp_Object (*code) (Lisp_Object), Lisp_Object arg) | |||
| 407 | 407 | ||
| 408 | waiting_for_input = owfi; | 408 | waiting_for_input = owfi; |
| 409 | 409 | ||
| 410 | UNBLOCK_INPUT; | 410 | unblock_input (); |
| 411 | } | 411 | } |
| 412 | 412 | ||
| 413 | static Lisp_Object | 413 | static Lisp_Object |
| @@ -479,7 +479,10 @@ term_w32select (void) | |||
| 479 | { | 479 | { |
| 480 | /* This is needed to trigger WM_RENDERALLFORMATS. */ | 480 | /* This is needed to trigger WM_RENDERALLFORMATS. */ |
| 481 | if (clipboard_owner != NULL) | 481 | if (clipboard_owner != NULL) |
| 482 | DestroyWindow (clipboard_owner); | 482 | { |
| 483 | DestroyWindow (clipboard_owner); | ||
| 484 | clipboard_owner = NULL; | ||
| 485 | } | ||
| 483 | } | 486 | } |
| 484 | 487 | ||
| 485 | static void | 488 | static void |
| @@ -699,7 +702,7 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, | |||
| 699 | current_num_nls = 0; | 702 | current_num_nls = 0; |
| 700 | current_requires_encoding = 0; | 703 | current_requires_encoding = 0; |
| 701 | 704 | ||
| 702 | BLOCK_INPUT; | 705 | block_input (); |
| 703 | 706 | ||
| 704 | /* Check for non-ASCII characters. While we are at it, count the | 707 | /* Check for non-ASCII characters. While we are at it, count the |
| 705 | number of LFs, so we know how many CRs we will have to add later | 708 | number of LFs, so we know how many CRs we will have to add later |
| @@ -787,7 +790,7 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, | |||
| 787 | current_coding_system = Qnil; | 790 | current_coding_system = Qnil; |
| 788 | 791 | ||
| 789 | done: | 792 | done: |
| 790 | UNBLOCK_INPUT; | 793 | unblock_input (); |
| 791 | 794 | ||
| 792 | return (ok ? string : Qnil); | 795 | return (ok ? string : Qnil); |
| 793 | } | 796 | } |
| @@ -815,7 +818,7 @@ DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, | |||
| 815 | setup_config (); | 818 | setup_config (); |
| 816 | actual_clipboard_type = cfg_clipboard_type; | 819 | actual_clipboard_type = cfg_clipboard_type; |
| 817 | 820 | ||
| 818 | BLOCK_INPUT; | 821 | block_input (); |
| 819 | 822 | ||
| 820 | if (!OpenClipboard (clipboard_owner)) | 823 | if (!OpenClipboard (clipboard_owner)) |
| 821 | goto done; | 824 | goto done; |
| @@ -1005,7 +1008,7 @@ DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, | |||
| 1005 | CloseClipboard (); | 1008 | CloseClipboard (); |
| 1006 | 1009 | ||
| 1007 | done: | 1010 | done: |
| 1008 | UNBLOCK_INPUT; | 1011 | unblock_input (); |
| 1009 | 1012 | ||
| 1010 | return (ret); | 1013 | return (ret); |
| 1011 | } | 1014 | } |