emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 3223302: Use modern constant names for the NS pasteboard


From: Alan Third
Subject: emacs-27 3223302: Use modern constant names for the NS pasteboard
Date: Fri, 18 Sep 2020 15:09:19 -0400 (EDT)

branch: emacs-27
commit 3223302aa2294d0e2a68216e84e3ee2d4ebcbee1
Author: Daniel Martín <mardani29@yahoo.es>
Commit: Alan Third <alan@idiocy.org>

    Use modern constant names for the NS pasteboard
    
    Use the same pasteboard constant names defined in
    ns_drag_types. (Bug#43470).
    
    * src/nsterm.m: Rename NSURLPboardType to NSPasteboardTypeURL,
    NSStringPboardType to NSPasteboardTypeString, and
    NSTabularTextPboardType to NSPasteboardTypeTabularText
---
 src/nsterm.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index ac46784..3dd915e 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -8363,7 +8363,7 @@ not_in_argv (NSString *arg)
       while ( (file = [fenum nextObject]) )
         strings = Fcons (build_string ([file UTF8String]), strings);
     }
-  else if ([type isEqualToString: NSURLPboardType])
+  else if ([type isEqualToString: NSPasteboardTypeURL])
     {
       NSURL *url = [NSURL URLFromPasteboard: pb];
       if (url == nil) return NO;
@@ -8372,8 +8372,8 @@ not_in_argv (NSString *arg)
 
       strings = list1 (build_string ([[url absoluteString] UTF8String]));
     }
-  else if ([type isEqualToString: NSStringPboardType]
-           || [type isEqualToString: NSTabularTextPboardType])
+  else if ([type isEqualToString: NSPasteboardTypeString]
+           || [type isEqualToString: NSPasteboardTypeTabularText])
     {
       NSString *data;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]