]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix breakage introduced by fixing Bug#8842.
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 8 Jul 2011 15:39:40 +0000 (17:39 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 8 Jul 2011 15:39:40 +0000 (17:39 +0200)
* 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.

src/ChangeLog
src/nsfns.m
src/nsterm.m

index c48956042a16feacb8948cb205d53a845fbb244c..ff7382a87e4c8a937226f527ada908ed30da17f2 100644 (file)
@@ -1,3 +1,12 @@
+2011-07-08  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (initFrameFromEmacs): Don't use ns_return_types
+       in registerServicesMenuSendTypes.
+       (validRequestorForSendType): Don't check ns_return_types.
+
+       * nsfns.m (Fx_open_connection): Put NSStringPboardType into
+       ns_return_type.
+
 2011-07-08  Jason Rumney  <jasonr@gnu.org>
 
        * w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using
index 865fc0da9cb8699ac02a4b51ef7f5bc4bdcc0d29..0452086201ef4ad7a39f4e2d3eb48034398874ba 100644 (file)
@@ -1729,7 +1729,8 @@ terminate Emacs if we can't open the connection.
   /* Register our external input/output types, used for determining
      applicable services and also drag/drop eligibility. */
   ns_send_types = [[NSArray arrayWithObjects: NSStringPboardType, nil] retain];
-  ns_return_types = [[NSArray arrayWithObjects: nil] retain];
+  ns_return_types = [[NSArray arrayWithObjects: NSStringPboardType, nil]
+                      retain];
   ns_drag_types = [[NSArray arrayWithObjects:
                             NSStringPboardType,
                             NSTabularTextPboardType,
index b724b6a02f3e7ade60d315cfc437d30d7369aafc..546247ab74ac817dc39d35cbcc6c7a3f3d700f03 100644 (file)
@@ -5370,7 +5370,7 @@ ns_term_shutdown (int sig)
   [self allocateGState];
 
   [NSApp registerServicesMenuSendTypes: ns_send_types
-                           returnTypes: ns_return_types];
+                           returnTypes: nil];
 
   ns_window_num++;
   return self;
@@ -5748,8 +5748,7 @@ ns_term_shutdown (int sig)
 {
   NSTRACE (validRequestorForSendType);
   if (typeSent != nil && [ns_send_types indexOfObject: typeSent] != NSNotFound
-      && (typeReturned == nil
-          || [ns_return_types indexOfObject: typeSent] != NSNotFound))
+      && typeReturned == nil)
     {
       if (! NILP (ns_get_local_selection (QPRIMARY, QUTF8_STRING)))
         return self;