From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: lisp/term/ns-win.el modification Date: Fri, 28 Apr 2017 08:29:20 +0900 Message-ID: <1CA80C4D-3621-4DAB-90FB-59110F112649@gmail.com> References: <44D4AA3B-8F87-42B6-A2D2-00487B066183@gmail.com> <74D20593-63B6-46FB-BAC3-D841D0BCD461@gmail.com> <82788A68-05DA-47A5-BE60-ABCA800E342E@gmail.com> <403c00a54faa1c7846053dff58a28630.squirrel@weber.math.s.chiba-u.ac.jp> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1493335814 26575 195.159.176.226 (27 Apr 2017 23:30:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Apr 2017 23:30:14 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 28 01:30:08 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3srK-0006YQ-34 for ged-emacs-devel@m.gmane.org; Fri, 28 Apr 2017 01:30:02 +0200 Original-Received: from localhost ([::1]:34618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3srL-00088P-2G for ged-emacs-devel@m.gmane.org; Thu, 27 Apr 2017 19:30:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3srF-00088F-Ln for emacs-devel@gnu.org; Thu, 27 Apr 2017 19:29:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3srC-0004Wa-EC for emacs-devel@gnu.org; Thu, 27 Apr 2017 19:29:57 -0400 Original-Received: from mail-pg0-x229.google.com ([2607:f8b0:400e:c05::229]:35518) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3srC-0004Vk-8q for emacs-devel@gnu.org; Thu, 27 Apr 2017 19:29:54 -0400 Original-Received: by mail-pg0-x229.google.com with SMTP id o3so248195pgn.2 for ; Thu, 27 Apr 2017 16:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=XuYi22IjrqsHx36skMfHHAq7ymiwym8Qn4xfmb7QpWY=; b=OUmpwBRqB5WNaGxm+vJKq6XE4uROUjMNS44/VLVOu2JeGpQ8hwivfD2WF4D+RqNDZc QEOedNq6/ofuioaXIvlJzaIf9Dhz/RpsyLA74CAxp7mioNL37SU8m1dVKXknVCdp9UpW Cn8t9h1PZ/Hgk/aT1vHcDJJtKMX9Uw0ap5WU0jlK3CqEmrCxmbjLBasDguhqpj948veP y+nh6EH5JKLgpRG0L5oDxlSQ/4TdVG/xEb2mX/ZtfVSn3T293BXo/K4T/fsRWQOqiStk cb23aaoHeJcMGATMIQ0jXARXAjR1VX75VaUP6sSAZtiY2qRzAznAzT1/aeASMMhkObWm LnBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=XuYi22IjrqsHx36skMfHHAq7ymiwym8Qn4xfmb7QpWY=; b=P53bgcIOyL9d4o8Zy+k8aV1PNd8aPQQZDczXNqBPVEfUbVm5PlRWdr9Ios60R+2Ie3 Iiv0/X8WGXMFFSJ+z5CkuRQxIUtizuMX/94xfiOuAL3sqfRvQfPqmm2ayVwdUXnoMCwe gThchjDJ+97Yf+lp3edXNR5XrehG+5/1ikmi8OhCM9n0wsPehaN5A6J81To4aKyEssMv PLOMEqve96l9j6pw/P37PDE5+E+0j54LGQtP7XoH7RT/N5G4D/PnVr+xHfufNDMphP39 Ff1425cEVk0R0uIZNBkvmoqixE0Wlo00hvilRL3OmQWak8vdA4rU3ttkR42bOFStYq9O zShg== X-Gm-Message-State: AN3rC/4HSXtEZ0W/Kfy0bQUceZ1ttr0WaKNi1dfzm5fQTxJABAZ4XFPe +YB7rCAs5aZgV/uORX8= X-Received: by 10.98.87.203 with SMTP id i72mr8958617pfj.151.1493335793152; Thu, 27 Apr 2017 16:29:53 -0700 (PDT) Original-Received: from [192.168.24.54] (pl25298.ag0304.nttpc.ne.jp. [133.232.153.210]) by smtp.gmail.com with ESMTPSA id z5sm6290129pfd.76.2017.04.27.16.29.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Apr 2017 16:29:52 -0700 (PDT) X-Priority: 3 (Normal) In-Reply-To: <403c00a54faa1c7846053dff58a28630.squirrel@weber.math.s.chiba-u.ac.jp> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214369 Archived-At: Thank you. I'm not sure how I could do that but I'll investigate. In the meanwhile I'll just try to improve my patch based on the other = elisp related comments. Jean-Christophe > On Apr 28, 2017, at 3:28, mituharu@math.s.chiba-u.ac.jp wrote: >=20 >>> For more consistent behavior with other apps on macOS, you can >>> let the system parse the selected text to get (possibly multiple) >>> filenames. Just inspect the service pasteboard with >>> NSFilenamesPboardType instead of NSStringPboardType. >>=20 >> I've just checked the clipboard contents when I select a path in a = text >> file and I only get NSStringPboardType. NSFilenamesPboardType is only >> available when I select a file in the Finder, which is not the use = case >> here. >>=20 >> Or maybe I've misunderstood what you wrote. >=20 > If "the clipboard" means NSGeneralPboard, that's not what I meant > by "the service pasteboard". It's the one passed to the service > method as the first arg. >=20 > = https://developer.apple.com/library/content/documentation/Cocoa/Conceptual= /SysServices/Articles/providing.html#//apple_ref/doc/uid/20000853-98262