aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2011-07-08 17:39:40 +0200
committerJan Djärv2011-07-08 17:39:40 +0200
commit3fe4b54936ae48b8d30458bb9cac2912a9ecc09a (patch)
tree09f07136128e0a25f2681929dc527ea5aeb92c3a /src
parent856b2f11d8373374d9ddf7e89f6512b39e4071e3 (diff)
downloademacs-3fe4b54936ae48b8d30458bb9cac2912a9ecc09a.tar.gz
emacs-3fe4b54936ae48b8d30458bb9cac2912a9ecc09a.zip
Fix breakage introduced by fixing Bug#8842.
* nsfns.m (Fx_open_connection): Put NSStringPboardType into ns_return_type. * nsterm.m (initFrameFromEmacs): Don't use ns_return_types in registerServicesMenuSendTypes. (validRequestorForSendType): Don't check ns_return_types.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/nsfns.m3
-rw-r--r--src/nsterm.m5
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 @@
12011-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
12011-07-08 Jason Rumney <jasonr@gnu.org> 102011-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;