diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/nsfns.m | 3 | ||||
| -rw-r--r-- | src/nsterm.m | 5 |
3 files changed, 13 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c48956042a1..ff7382a87e4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-07-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsterm.m (initFrameFromEmacs): Don't use ns_return_types | ||
| 4 | in registerServicesMenuSendTypes. | ||
| 5 | (validRequestorForSendType): Don't check ns_return_types. | ||
| 6 | |||
| 7 | * nsfns.m (Fx_open_connection): Put NSStringPboardType into | ||
| 8 | ns_return_type. | ||
| 9 | |||
| 1 | 2011-07-08 Jason Rumney <jasonr@gnu.org> | 10 | 2011-07-08 Jason Rumney <jasonr@gnu.org> |
| 2 | 11 | ||
| 3 | * w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using | 12 | * w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using |
diff --git a/src/nsfns.m b/src/nsfns.m index 865fc0da9cb..0452086201e 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -1729,7 +1729,8 @@ terminate Emacs if we can't open the connection. | |||
| 1729 | /* Register our external input/output types, used for determining | 1729 | /* Register our external input/output types, used for determining |
| 1730 | applicable services and also drag/drop eligibility. */ | 1730 | applicable services and also drag/drop eligibility. */ |
| 1731 | ns_send_types = [[NSArray arrayWithObjects: NSStringPboardType, nil] retain]; | 1731 | ns_send_types = [[NSArray arrayWithObjects: NSStringPboardType, nil] retain]; |
| 1732 | ns_return_types = [[NSArray arrayWithObjects: nil] retain]; | 1732 | ns_return_types = [[NSArray arrayWithObjects: NSStringPboardType, nil] |
| 1733 | retain]; | ||
| 1733 | ns_drag_types = [[NSArray arrayWithObjects: | 1734 | ns_drag_types = [[NSArray arrayWithObjects: |
| 1734 | NSStringPboardType, | 1735 | NSStringPboardType, |
| 1735 | NSTabularTextPboardType, | 1736 | NSTabularTextPboardType, |
diff --git a/src/nsterm.m b/src/nsterm.m index b724b6a02f3..546247ab74a 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -5370,7 +5370,7 @@ ns_term_shutdown (int sig) | |||
| 5370 | [self allocateGState]; | 5370 | [self allocateGState]; |
| 5371 | 5371 | ||
| 5372 | [NSApp registerServicesMenuSendTypes: ns_send_types | 5372 | [NSApp registerServicesMenuSendTypes: ns_send_types |
| 5373 | returnTypes: ns_return_types]; | 5373 | returnTypes: nil]; |
| 5374 | 5374 | ||
| 5375 | ns_window_num++; | 5375 | ns_window_num++; |
| 5376 | return self; | 5376 | return self; |
| @@ -5748,8 +5748,7 @@ ns_term_shutdown (int sig) | |||
| 5748 | { | 5748 | { |
| 5749 | NSTRACE (validRequestorForSendType); | 5749 | NSTRACE (validRequestorForSendType); |
| 5750 | if (typeSent != nil && [ns_send_types indexOfObject: typeSent] != NSNotFound | 5750 | if (typeSent != nil && [ns_send_types indexOfObject: typeSent] != NSNotFound |
| 5751 | && (typeReturned == nil | 5751 | && typeReturned == nil) |
| 5752 | || [ns_return_types indexOfObject: typeSent] != NSNotFound)) | ||
| 5753 | { | 5752 | { |
| 5754 | if (! NILP (ns_get_local_selection (QPRIMARY, QUTF8_STRING))) | 5753 | if (! NILP (ns_get_local_selection (QPRIMARY, QUTF8_STRING))) |
| 5755 | return self; | 5754 | return self; |