GNU bug report logs - #30929
26.0.91; [macOS] Text drag and drop does not work

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Nick Helm <nick@HIDDEN>; dated Sat, 24 Mar 2018 20:00:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 30929 <at> debbugs.gnu.org:


Received: (at 30929) by debbugs.gnu.org; 24 Apr 2018 12:42:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 24 08:42:37 2018
Received: from localhost ([127.0.0.1]:37773 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fAxHI-0003cX-Q3
	for submit <at> debbugs.gnu.org; Tue, 24 Apr 2018 08:42:36 -0400
Received: from mail-me1aus01on0125.outbound.protection.outlook.com
 ([104.47.116.125]:19478 helo=AUS01-ME1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nick@HIDDEN>) id 1fAxHE-0003cH-FD
 for 30929 <at> debbugs.gnu.org; Tue, 24 Apr 2018 08:42:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
 bh=jHk3u+wLsH6M3djUBCvdMMKg3Tm/JJEdtLeBmA5OyTQ=;
 b=QDhHw//8ymbmiy14Z4cOoFYuDoAQqHE2FZ0YoHWl3ddmGuCtiUth3Cq2MZZSYHqXJ/pInqLcXo/C4kmX5znZ9RIG11z9ofUby9BSolO6Fv3jz/+4aiobenDYZZwLnSaIGkOYzgJuk3jRwrgTaKApTqdzR3P7IEcxmGfOTRjn2wE=
Authentication-Results: spf=none (sender IP is )
 smtp.mailfrom=nick@HIDDEN; 
Received: from jupiter.local (125.239.174.80) by
 ME2PR01MB2899.ausprd01.prod.outlook.com (2603:10c6:201:22::16) with Microsoft
 SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.12; Tue, 24
 Apr 2018 12:42:23 +0000
From: Nick Helm <nick@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#30929: 26.0.91; Text drag and drop does not work
References: <m24ll564kk.fsf@HIDDEN>
 <20180325115732.GA52626@HIDDEN>
 <m2bmf8sgj6.fsf@HIDDEN>
 <20180407150119.GA1190@HIDDEN>
 <m2fu45jge9.fsf@HIDDEN>
 <20180410193824.GA15361@HIDDEN>
 <m24lkhasyu.fsf@HIDDEN>
 <20180413183334.GA39515@HIDDEN>
Date: Wed, 25 Apr 2018 00:42:19 +1200
In-Reply-To: <20180413183334.GA39515@HIDDEN> (Alan Third's
 message of "Fri, 13 Apr 2018 19:33:34 +0100")
Message-ID: <m2d0you66s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: [125.239.174.80]
X-ClientProxiedBy: SYXPR01CA0093.ausprd01.prod.outlook.com
 (2603:10c6:0:2e::26) To ME2PR01MB2899.ausprd01.prod.outlook.com
 (2603:10c6:201:22::16)
X-MS-PublicTrafficType: Email
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0;
 RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020);
 SRVR:ME2PR01MB2899; 
X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2899;
 3:Aiwx9Dc8Qd83m10mVqnNwOf2jLSCTMpaNsNdyS5nvs2j5j/sFZyCOm08JdI1M5dTlWfUdqoub/FNrVBXkWP8eck886j5UXeIECf/WZVZyz8HebRNe3WvB75okVp7hdRGIAFRJMCqbanqQmwjXkMeDHg4wIr25wSUJPVXnEa3jE2Bj6yA4Fk1w7vWki+oOWTXDfY1LpCsxvy0Cgf9KL7b6E7u8Eqf/vdOYi8XajyyPnXZlfzsqjKm1zbMXUMMYNFY;
 25:avd0XaT+3VjJ8k/qS+ks/3rEoc4Nv/as8zFHCUuPRUH5FAE0tCRHQjxnjwvkLzunIQ26A1gKIxZxpy3rku6eLkvE6kWOTvd8sbTOZBgnQ/S4+TY/W9qAsCHcturOFJ+9rzYRcFEX8876bMe3ozS+Jgp4BW2klTqmiTf39/Faq3hbr3M/9vjiPbhapY+m7mSEBvfRf3R7DjacEuR2svchFiqaob4vy5CW8Gs2sWJiFyc+9WGcjiWPjdH2YnZWJhn7hB1OQWgLSf75kjMbHovnSsCfC+2j/xBY4v3zqC14nF5W4OeT1ig9NAWii91pe+IOgK/uDkpVVs68ZoNYaW5OSw==;
 31:sc2vJITAUnmBKtrTlq0jh+7rqOEbgNy6AVSud5Ne+7fhPf+CVVK01V5Wv7hAJsq19lL/qByL7td63G2LKF1r1slXd12PWqoj5H91yjtzwDeJN7nfdxh9sFL0XdGp939myO34X2QAXKWt7vOR8btli976OS/GfB0JYl1x+ZwFdBI36tnE5FzJeD1aoYLXS+h7zYhizM/513w86j8bljeZreHdik7TBiwAewHMUL30nqs=
X-MS-TrafficTypeDiagnostic: ME2PR01MB2899:
X-Microsoft-Antispam-PRVS: <ME2PR01MB28997CE42630514A6EE85D32FE880@HIDDEN>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0;
 RULEID:(6040522)(2401047)(5005006)(8121501046)(3231232)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6041310)(20161123558120)(20161123562045)(2016111802025)(20161123560045)(20161123564045)(6043046)(6072148)(201708071742011);
 SRVR:ME2PR01MB2899; BCL:0; PCL:0; RULEID:; SRVR:ME2PR01MB2899; 
X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2899;
 4:eXf8KHxNBNUhv4XRBUoVFz2bycSQTkh7CDf7/ZN+BFFNf9+OzCZ7vH3ymSBCxYFR0w+O8DpESXbjzLagEEsjyVE2UjEqsY/ME80jJZCL2Ly1XLGpXqXy6WEzfH1j6OrYa3NzPaXAZraXd9BgmzNZrS9v0BzQaRlNcyfB1U/oqHlltoIRokVix5SqKPFJUrPNtT2OU095pSeCYvPR1FmoEwUyWgAf1867eIZZquAB3di0kdrCfKLS38I/5lVRzQX6/kfnVy+QsJ9RGSRQz9jt/g==
X-Forefront-PRVS: 0652EA5565
X-Forefront-Antispam-Report: SFV:NSPM;
 SFS:(10019020)(396003)(366004)(346002)(39380400002)(376002)(39830400003)(199004)(189003)(8676002)(66066001)(26005)(6506007)(47776003)(76176011)(36756003)(386003)(6916009)(68736007)(52146003)(23676004)(2486003)(105586002)(5660300001)(52116002)(2906002)(6116002)(50466002)(6666003)(3846002)(305945005)(53936002)(7736002)(86362001)(6246003)(8936002)(478600001)(74482002)(8746002)(6512007)(106356001)(476003)(25786009)(2616005)(316002)(81156014)(956004)(81166006)(4326008)(486006)(229853002)(11346002)(6486002)(97736004)(58126008)(16526019)(446003)(93886005)(186003);
 DIR:OUT; SFP:1102; SCL:1; SRVR:ME2PR01MB2899; H:jupiter.local; FPR:; SPF:None;
 LANG:en; PTR:InfoNoRecords; A:1; MX:1; 
Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate
 permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNRTJQUjAxTUIyODk5OzIzOjh3Y2QzUklIMUM4aU8zcXlLVEoyem85REVv?=
 =?utf-8?B?N0JmaHV5OXpmaUJOdGJjSjdwZE12SjIrZkVpaUk3QkZUTGpSdWZHVnZpN0tB?=
 =?utf-8?B?TGg0citOalVMRWwvSElkcGpINmQ3OVpCdE5NUFhwZm5yZlFMQ2pFS3N0WGpG?=
 =?utf-8?B?MTVIOE9jcDgvVU00TXFib3ZRay84Tm9ucVdXL0E3N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mJ15dIH2
X-MS-Office365-Filtering-Correlation-Id: e3e86168-3462-41d0-dd7b-08d5a9e0d44c
X-OriginatorOrg: tenpoint.co.nz
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2018 12:42:23.9556 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: e3e86168-3462-41d0-dd7b-08d5a9e0d44c
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: ed686f26-19e8-407b-91d0-7364c1c6f5cf
X-MS-Exchange-Transport-CrossTenantHeadersStamped: ME2PR01MB2899
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 30929
Cc: 30929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sat, 14 Apr 2018 at 06:33:34 +1200, Alan Third wrote:

> On Thu, Apr 12, 2018 at 05:34:17PM +1200, Nick Helm wrote:
>> On Wed, 11 Apr 2018 at 07:38:24 +1200, Alan Third wrote:
>>=20
>> > On Mon, Apr 09, 2018 at 01:51:58PM +1200, Nick Helm wrote:
>>=20
>> > This is probably a better idea, we pass the string, the type (from the
>> > PB) and the mask to lisp, and then let ns-drag-n-drop sort it out.
>> > Like you say, if an expert wants to do something different they can
>> > then write their own function.
>> >
>> > So in C we just construct something like:
>> >
>> >     '(file
>> >       (ns-drag-operation-copy
>> >        ns-drag-operation-link)
>> >       "filename")
>> >
>> > Are you wanting to give this a go? I=E2=80=99m happy to work on it if =
not.
>>=20
>> Ok, I see what you mean. Yep, I can have a go at it.
>
> I look forward to it.

I've spent many many hours on this but I'm afraid I can't get it to
work. There are just too many permutations.

I give up, sorry.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30929; Package emacs. Full text available.

Message received at 30929 <at> debbugs.gnu.org:


Received: (at 30929) by debbugs.gnu.org; 13 Apr 2018 18:33:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 13 14:33:45 2018
Received: from localhost ([127.0.0.1]:50914 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f73W4-0006jI-Uq
	for submit <at> debbugs.gnu.org; Fri, 13 Apr 2018 14:33:45 -0400
Received: from mail-wr0-f176.google.com ([209.85.128.176]:40775)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <athird@HIDDEN>) id 1f73W3-0006j3-9t
 for 30929 <at> debbugs.gnu.org; Fri, 13 Apr 2018 14:33:43 -0400
Received: by mail-wr0-f176.google.com with SMTP id v60so6518917wrc.7
 for <30929 <at> debbugs.gnu.org>; Fri, 13 Apr 2018 11:33:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20161025;
 h=sender:date:from:to:cc:subject:message-id:references:mime-version
 :content-disposition:content-transfer-encoding:in-reply-to
 :user-agent; bh=dM18w8PknMPKMLE8GanTyMHYcEtcxCTvJakiydPZIkU=;
 b=KWF3wLLpXKSyUpC4Hla6q6SyEeDlyVKY7Xvk+HggTzuc2mJRsgdBUc9HJ9NI9CUjDH
 Js0fq6Zx7hrgMzDfEtk2Os20n/5Z3n2m3dsg3MjZvSxNNOM/P8qUNdnP5Txwv0ZBBesh
 qHP3qkFPyABljDWsrG5ayN9x1hjYMuHzdsEwfMTyZJDwTfajj8wOzI2GX48R9dXg3Q3v
 sSqQqhruzwL0vSx1r87qhSusanAfGwiztUBYlhsj0mipeX97nM4NE4Skt7LqkhLk5sUN
 9KP6pq284S2jF8lZLHIxmfKu2PRBiybtdx+wKXOPwL8zQlXaj3UEsyHNy/UabKHWgqQe
 KQkA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:date:from:to:cc:subject:message-id
 :references:mime-version:content-disposition
 :content-transfer-encoding:in-reply-to:user-agent;
 bh=dM18w8PknMPKMLE8GanTyMHYcEtcxCTvJakiydPZIkU=;
 b=ZIlHCUrzAzgzxFW+vClQ4BpP/2Oiq5V8hiA2f24ucNZHnxs8NbD69lbgGFe5Qw3qnR
 7u/nDWycpQpcjzeaYPNt47quNUiNjwp2cqF3gsPrCBgiokqX2eLe7zrHlooq4H1kVNCY
 CkefDBlKSP0+1ue+GQqGJGWicw9EeHHqpg8RtE/u+Gz6y7XUpkWfkNDim7/w8ZbAk677
 SdFoM/lzj/21yCBUIZnJUYFx/D4xbMi66neIvgNn/T15qEsXtBb0nR+bH5zsRFU6B8b1
 PFs/9ZZfu2HzTtt+5EUAUroNhsuWovpcUlnsv21OC/6Hd6kS9sjYBwapoF8EGWsB2z4F
 mGTg==
X-Gm-Message-State: ALQs6tCGgLVhE74Wzzybtm5Cc8igkR2otzNJRH0S/69hI/mlScVN0777
 uctV3W5SGpA9xh+6ahhYPVhK1DEq
X-Google-Smtp-Source: AIpwx496Nt9HftHB1Ow5R+6Hgm56Rb9V1FQ8EkThZWbIq9ewSCAc32JV0GmiyDO0xQStp6op0F0cwA==
X-Received: by 10.223.192.3 with SMTP id z3mr4285875wre.177.1523644417553;
 Fri, 13 Apr 2018 11:33:37 -0700 (PDT)
Received: from breton.holly.idiocy.org
 (ip6-2001-08b0-03f8-8129-b067-446f-7f80-450f.holly.idiocy.org.
 [2001:8b0:3f8:8129:b067:446f:7f80:450f])
 by smtp.gmail.com with ESMTPSA id 72sm2859097wmu.38.2018.04.13.11.33.36
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 13 Apr 2018 11:33:36 -0700 (PDT)
Date: Fri, 13 Apr 2018 19:33:34 +0100
From: Alan Third <alan@HIDDEN>
To: Nick Helm <nick@HIDDEN>
Subject: Re: bug#30929: 26.0.91; Text drag and drop does not work
Message-ID: <20180413183334.GA39515@HIDDEN>
References: <m24ll564kk.fsf@HIDDEN>
 <20180325115732.GA52626@HIDDEN>
 <m2bmf8sgj6.fsf@HIDDEN>
 <20180407150119.GA1190@HIDDEN>
 <m2fu45jge9.fsf@HIDDEN>
 <20180410193824.GA15361@HIDDEN>
 <m24lkhasyu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <m24lkhasyu.fsf@HIDDEN>
User-Agent: Mutt/1.9.3 (2018-01-21)
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 30929
Cc: 30929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Thu, Apr 12, 2018 at 05:34:17PM +1200, Nick Helm wrote:
> On Wed, 11 Apr 2018 at 07:38:24 +1200, Alan Third wrote:
> 
> > On Mon, Apr 09, 2018 at 01:51:58PM +1200, Nick Helm wrote:
> 
> > This is probably a better idea, we pass the string, the type (from the
> > PB) and the mask to lisp, and then let ns-drag-n-drop sort it out.
> > Like you say, if an expert wants to do something different they can
> > then write their own function.
> >
> > So in C we just construct something like:
> >
> >     '(file
> >       (ns-drag-operation-copy
> >        ns-drag-operation-link)
> >       "filename")
> >
> > Are you wanting to give this a go? I’m happy to work on it if not.
> 
> Ok, I see what you mean. Yep, I can have a go at it.

I look forward to it.

BTW, there’s some code in the drag and drop stuff that sets
ns_input_file. You don’t need that, it’s not used for DnD and, in
fact, causes problems with other ways of opening files.

(More info in commit 292c09ff6db4bba1655bbb3160e859fef59ab34b and
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29121, which I now see
was raised by you. :) )
-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30929; Package emacs. Full text available.

Message received at 30929 <at> debbugs.gnu.org:


Received: (at 30929) by debbugs.gnu.org; 12 Apr 2018 05:34:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 12 01:34:31 2018
Received: from localhost ([127.0.0.1]:46953 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f6UsR-00035I-8I
	for submit <at> debbugs.gnu.org; Thu, 12 Apr 2018 01:34:31 -0400
Received: from mail-me1aus01on0091.outbound.protection.outlook.com
 ([104.47.116.91]:60051 helo=AUS01-ME1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nick@HIDDEN>) id 1f6UsP-000354-BP
 for 30929 <at> debbugs.gnu.org; Thu, 12 Apr 2018 01:34:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
 bh=tSMkQRFE8piRLy7O7jYXeyBItkqtC5Y4wuLu4nR0nKQ=;
 b=lUe+25qsNp9BWS3OwyNrOYraHmxooyVURoEXgCgZv7U8BVrotGP6l9VAhebe/FhXU71gOxBYGhXyZIWpKL8Fl+wsxJSuxkZY/z7oOgerMB6DKkL6QBgDi8lc62q/Nvl8K5Ec3emrsE5L2IEKQ2slpYd3QkU60+EgTIUclfYGe3I=
Authentication-Results: spf=none (sender IP is )
 smtp.mailfrom=nick@HIDDEN; 
Received: from oberon.local (125.239.174.80) by
 SY2PR01MB2908.ausprd01.prod.outlook.com (2603:10c6:1:1e::21) with Microsoft
 SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Thu, 12
 Apr 2018 05:34:20 +0000
From: Nick Helm <nick@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#30929: 26.0.91; Text drag and drop does not work
References: <m24ll564kk.fsf@HIDDEN>
 <20180325115732.GA52626@HIDDEN>
 <m2bmf8sgj6.fsf@HIDDEN>
 <20180407150119.GA1190@HIDDEN>
 <m2fu45jge9.fsf@HIDDEN>
 <20180410193824.GA15361@HIDDEN>
Date: Thu, 12 Apr 2018 17:34:17 +1200
Message-ID: <m24lkhasyu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: [125.239.174.80]
X-ClientProxiedBy: SY2PR01CA0040.ausprd01.prod.outlook.com
 (2603:10c6:1:15::28) To SY2PR01MB2908.ausprd01.prod.outlook.com
 (2603:10c6:1:1e::21)
X-MS-PublicTrafficType: Email
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0;
 RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020);
 SRVR:SY2PR01MB2908; 
X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2908;
 3:1q2Nhw3sEPuGvJLEdOJrimkqd5W2AYDUpdReYNcZda8wl/STS+dP3p0qTwWaTXO053/cCH+U1IT/GDV0J6u/u6jp7fBVtyLsL4ShA1/hZKNVSdb0NoJX+jJIjuPLmTMqydPN77Jgbz3uDfptgczGHy3GypbDx+PiWwQON8vg2LCAyx484iBMIV/FEKzxmpO/b+rPfCj45CT8AtQ50h2TjKimIlQwCUXVpbElTBklG5PiWNGyp1lX8/kTfDHcWwh4;
 25:9EmnbiiDY07M8msF56j0eVt8lJ01bTsaEE39nTsZJWVq7Xf2RXajZOZzuilxM/QguFkzMcn76g32grt7jEBPywh0+1nnry/aTe3nazE7DI2bPCI4qldT80pDdioGvwSAKrJ6zpptTnipdDl1gWQl2VacLvxt/qsB+s+Y/oCZRL0mG6FD4sCTW2zJ9K1Npyy3cJocE+tpliuHNDGcTYtRPYrpUQ4C7HUqJ52fY/sfpbNd2yms86pgqIFBTOw969o+GIN+jP71JEt8da002lZlUY+1zSHgoGiwq+uzC7t25CN+WhNJHPN3J+KD5aeZ7VRbfFi6v8GeMz0t093anmZxUQ==;
 31:WTHw6+XFQOt3dwzbd+08KEDrZpRDDUF1sHdwiDHeC6Hj+Vqy/lBCuW1wbO2c+CDgHUYUCp9iHsn/Cxt9/g+DXgEs8X3v/EyJ0O55oICDSmgthd+xGVM1XOsQd4go052W40kG0nQHacZJZAariq1XdRvOQ+FJrgvnf3UrLHzLe7mMiRY0oi22CtgfLP0v7TMaGVXNXU2yDSAa18fe33Ea4ALJMpz+q/ecajfblSgjxi4=
X-MS-TrafficTypeDiagnostic: SY2PR01MB2908:
X-Microsoft-Antispam-PRVS: <SY2PR01MB2908DDFA63BF74237455D867FEBC0@HIDDEN>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0;
 RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(6041310)(2016111802025)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(6043046)(6072148)(201708071742011);
 SRVR:SY2PR01MB2908; BCL:0; PCL:0; RULEID:; SRVR:SY2PR01MB2908; 
X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2908;
 4:62O9A+uqoj73rzml2KkpntB+HnCs6RKQPGcqn39y5umKyTHD/rdVcdZabrNcvO4NsPoCwXjBNkdUOO/Yy/7k5/6ZAVtLtyhSjZjjjb2/3oiyWpB26p9/wk5meU9g1Purzy0ChE2S7kpoote1xdifkg5leBjZD2yBxCHo17XCp3go+JgepXV3hqhUVXqpk/8z9g8KqKjlD6gRDwFzWqLKclaBurLnDMDISDfbXkWTo72ZxAXmsdA+0Buvnyxqnk0yL67lZrYotisrwloohaGMPA==
X-Forefront-PRVS: 06400060E1
X-Forefront-Antispam-Report: SFV:NSPM;
 SFS:(10019020)(396003)(366004)(376002)(346002)(39830400003)(39380400002)(189003)(199004)(2906002)(486006)(3846002)(16526019)(86362001)(47776003)(6116002)(229853002)(76176011)(25786009)(52116002)(4326008)(8676002)(81156014)(2486003)(186003)(6916009)(476003)(23676004)(36756003)(6666003)(26005)(68736007)(52146003)(8746002)(8936002)(81166006)(6506007)(316002)(7736002)(6246003)(386003)(956004)(105586002)(478600001)(6486002)(53936002)(446003)(6512007)(106356001)(66066001)(50466002)(93886005)(2616005)(58126008)(74482002)(97736004)(305945005)(5660300001);
 DIR:OUT; SFP:1102; SCL:1; SRVR:SY2PR01MB2908; H:oberon.local; FPR:; SPF:None;
 LANG:en; PTR:InfoNoRecords; MX:1; A:1; 
Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate
 permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTWTJQUjAxTUIyOTA4OzIzOkFkR1dxM0FuaVpoZEl2VXRUQisvODloYWZn?=
 =?utf-8?B?NkFFZlIxejJ6UzhOVTQ4RG5DaHVncVJnc3RtclcrQnpHeWkwY3d5bHNsazlw?=
 =?utf-8?B?bGFURHFVcnN3NmhacFpsUmpOTU5sR21ZMnRrZ2FPWEk4N1dySi9OMTdEUExi?=
 =?utf-8?B?NVVwb084L0ZGVElCcmRURXM5STNIdE5BZzVxeHpOOUExaXFjTENtOU96WHkr?=
 =?utf-8?B?ajVudjhNNFNJQjRhUTN3Sm1yZFV1QVp4bFVkbkdrMnNVdkJrN01pOEplVm4r?=
 =?utf-8?B?SGl4WGJMY1dvdGpNM3NVdm5FQ3BEa01DUzFRemdldnJ3dGFiY0Vza25jVDdI?=
 =?utf-8?B?eVA5d2NSTE5GLzRFNU41UEdQNnhLSUFjZ2FIWS9iZC8xWGFWNWJPeERYOEoy?=
 =?utf-8?B?YkhtcFVlcmRLYTAxZ3dEVmYyaVFZV3ViUHl0cG9YRFZYajNDOTVUWVJmQ1R0?=
 =?utf-8?B?UGdWbmdZb3NuemdicGF3QWpLalQ1NllmY0hDLzc0UzRMaFNqRXk2LzA3UkZp?=
 =?utf-8?B?UmY5dmtNK2F5MUZaUWlnUURLZXowendIZitjc0pWNVFQTTFQK0VCVzdHR1dt?=
 =?utf-8?B?SjRaMGdwOHFQOWFzdysxZFlSWGFVWlV3aGNuVHhTdjAxYWdTYnlFeDJSLzBO?=
 =?utf-8?B?MUlwVXBIaXRkQkJQN3J2SXUyekdqbUlWTFo2c2hhMi9LT1VUQjFWeitCb0VJ?=
 =?utf-8?B?b00reHFmSk95dEpDNEhNbitHWWY1OUt4dGd6RjZvMWlHSFpNOG1yTWZhZ1ps?=
 =?utf-8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uI4RN/QFcjQ8JUsfLCPT28dr2BonK5hpu3RQ12juuQQquE=
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2908;
 7:l/qvO/i6mxP969Ke797oX6ZtXqTut36iKMDpWPk8yqTd4S9zMjtWbE/haiKWYXr3TFMam0uk6DyyXnGsr9esgv/UQXk2qV+wNxbAeyxqbjdh4VVu/Wxxx3RCF6lok8qQ+NRwXhuF8Qxpl5vjPKxVgwypUhF/FziDICoCO9rl3oC2oXZUWlHN43IdPPM2Fp+a8opUPxryKpSpVudbRpRvM2Vaii3VPzl+ROL57ezxZiDU+cKY424QDdbsKnP/utyL
X-MS-Office365-Filtering-Correlation-Id: 1fce5282-8480-46e7-15f9-08d5a0370abf
X-OriginatorOrg: tenpoint.co.nz
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2018 05:34:20.4546 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 1fce5282-8480-46e7-15f9-08d5a0370abf
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: ed686f26-19e8-407b-91d0-7364c1c6f5cf
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY2PR01MB2908
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 30929
Cc: 30929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Wed, 11 Apr 2018 at 07:38:24 +1200, Alan Third wrote:

> On Mon, Apr 09, 2018 at 01:51:58PM +1200, Nick Helm wrote:

> This is probably a better idea, we pass the string, the type (from the
> PB) and the mask to lisp, and then let ns-drag-n-drop sort it out.
> Like you say, if an expert wants to do something different they can
> then write their own function.
>
> So in C we just construct something like:
>
>     '(file
>       (ns-drag-operation-copy
>        ns-drag-operation-link)
>       "filename")
>
> Are you wanting to give this a go? I=E2=80=99m happy to work on it if not.

Ok, I see what you mean. Yep, I can have a go at it.

> I=E2=80=99m not sure what the deal is with drag=E2=80=90n=E2=80=90drop fr=
om Emacs on
> GNU/Linux, but assuming it works under GNUstep as well as Cocoa we
> could add Emacs as a drag source.

I'll check. There may also be some technical hurdle, but I'd like to
have a go at this too. The docs for NSDraggingSource make it sound so
easy...

>> I'm guessing the boat has well and truly sailed for such major tweaks
>> in Emacs 26 though. Instead, would it make sense to change the
>> default binding on macOS so at least basic (unmodified) text dnd
>> works out of the box for the upcoming release?

> What would we have to do, just change the default bindings in
> ns-win.el?
>
> (global-set-key [drag-n-drop] 'ns-drag-n-drop)
> (global-set-key [C-drag-n-drop] 'ns-drag-n-drop-other-frame)
> (global-set-key [M-s-drag-n-drop] 'ns-drag-n-drop-as-text)
> (global-set-key [C-M-s-drag-n-drop] 'ns-drag-n-drop-as-text-other-frame)

Yes, but I was thinking of only changing this one

- (global-set-key [M-drag-n-drop] 'ns-drag-n-drop-as-text)
+ (global-set-key [M-s-drag-n-drop] 'ns-drag-n-drop-as-text)

as it's the only one unbound by default. This would be the bare minimum
change to make sure all unmodified dnd operations work by default.=20

> BTW, is it just me or does =E2=80=98ns-drag-n-drop-as-text-other-frame=E2=
=80=99 not
> actually do anything different from =E2=80=98ns-drag-n-drop-as-text=E2=80=
=99?

The former pops up a new frame for me, but I have to bind it to an event
first. I don't think there's an easy way to generate the default
[C-M-drag-n-drop] event because of the way the modifiers are
interpreted, so `ns-drag-n-drop-as-text-other-frame' is never called.

> The current binding works if I drag and drop text from iterm2, but
> fails if I drag from textedit.

I'm guessing, but this might be expected. The sender sets the initial
operation mask based on its capabilities. I don't know iTerm2 very well,
but it probably doesn't support move operations (as its text is read
only) so it masks out the move to force a copy. Emacs receives
[drag-n-drop] and the op works because `ns-drag-n-drop' is smart enough
to know what to do with text on the pb. TextEdit supports both move and
copy, so it doesn't mask out the move, and Emacs receives
[M-s-drag-n-drop] which is currently unbound.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30929; Package emacs. Full text available.

Message received at 30929 <at> debbugs.gnu.org:


Received: (at 30929) by debbugs.gnu.org; 10 Apr 2018 19:38:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 10 15:38:35 2018
Received: from localhost ([127.0.0.1]:45426 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f5z6B-0000uE-0R
	for submit <at> debbugs.gnu.org; Tue, 10 Apr 2018 15:38:35 -0400
Received: from mail-wm0-f51.google.com ([74.125.82.51]:38640)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <athird@HIDDEN>) id 1f5z69-0000u2-U1
 for 30929 <at> debbugs.gnu.org; Tue, 10 Apr 2018 15:38:34 -0400
Received: by mail-wm0-f51.google.com with SMTP id i3so25399395wmf.3
 for <30929 <at> debbugs.gnu.org>; Tue, 10 Apr 2018 12:38:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20161025;
 h=sender:date:from:to:cc:subject:message-id:references:mime-version
 :content-disposition:content-transfer-encoding:in-reply-to
 :user-agent; bh=b5FGEV5RCEh1yMmUZgpL+KR8R2IcoeM/Ddj9zmhWR0M=;
 b=c/b9akkQUtXyD74m1bEs3rNw8TwVCThsCOhAVXQNlxXBtL1fGmEjKs77mNdKBw6pvO
 DEx7Fnbk90QyeYq3DbTSCNTcaMbGJbo6aBj6PLYHvZJgwuU9gPcr5ZajIXpHu8ZGgVRC
 MmLNOw47qlNgiBZdJwdNZCLF+nAm99WZ/Qh5bPF+MBqoH/FsSfdURRlFryK9SfaDoM7o
 JYWUR/hENvkAUthR6vnKlD7K5395Uc4KbUm6vp2wKYmpMYPJyM/hsQfkAGMp866cT5Th
 uBqCgt6HaqZ+CuY3PEObhGVkkL2m170yc4Ne5kGca79pBNs3TG3fJoqjHyaGzRb+eJfi
 NaTg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:date:from:to:cc:subject:message-id
 :references:mime-version:content-disposition
 :content-transfer-encoding:in-reply-to:user-agent;
 bh=b5FGEV5RCEh1yMmUZgpL+KR8R2IcoeM/Ddj9zmhWR0M=;
 b=t+ZPG6voxgAjeGzgRutB6INufINNRXHqGxSXJscFCbWpJJjz9Gk2nnSuRrV4qS0fHE
 ciop2FvSLTuICcMjo128V4GUHbNVRal41n030uEXhJ3e79Wl5XcLuLwZW9sSjHgd/Q6d
 TcwhWviCk5He1p97UXsOvxjWfv+7bBWYCMitZL+iY7pObr1CsNkprz9wTgQn/3W562ZJ
 Fhnr0uss1WsPxtRD+tfaACfczrjz25gDMGSVp51+/qgVn4ThUU6EEsZbnj+93do2QsUQ
 suJf78Dg8+ho1Mxwy5AbRolv/g/bEiWd7anO9e2MA5bNRATlqhniAEPTTY3w5PJbVjWQ
 2Buw==
X-Gm-Message-State: ALQs6tCZkXocMfqNgxfMN3neX80H+sUSxgza65inSYfJfPjmpHNIN9Gy
 M4Zy6P3cOvsEJfCgS25a7QvkyxUM
X-Google-Smtp-Source: AIpwx49eI1h4MArSrZ/AoEAu1GQGD942T6/lRq1HI0qhMyPhWu07IexpfPMt6IkeBFArf2JE+K3vgg==
X-Received: by 10.28.35.76 with SMTP id j73mr476647wmj.103.1523389107813;
 Tue, 10 Apr 2018 12:38:27 -0700 (PDT)
Received: from breton.holly.idiocy.org
 (ip6-2001-08b0-03f8-8129-d913-31fc-0f49-6afb.holly.idiocy.org.
 [2001:8b0:3f8:8129:d913:31fc:f49:6afb])
 by smtp.gmail.com with ESMTPSA id j21sm4591290wrb.49.2018.04.10.12.38.26
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 10 Apr 2018 12:38:26 -0700 (PDT)
Date: Tue, 10 Apr 2018 20:38:24 +0100
From: Alan Third <alan@HIDDEN>
To: Nick Helm <nick@HIDDEN>
Subject: Re: bug#30929: 26.0.91; Text drag and drop does not work
Message-ID: <20180410193824.GA15361@HIDDEN>
References: <m24ll564kk.fsf@HIDDEN>
 <20180325115732.GA52626@HIDDEN>
 <m2bmf8sgj6.fsf@HIDDEN>
 <20180407150119.GA1190@HIDDEN>
 <m2fu45jge9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <m2fu45jge9.fsf@HIDDEN>
User-Agent: Mutt/1.9.3 (2018-01-21)
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 30929
Cc: 30929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Mon, Apr 09, 2018 at 01:51:58PM +1200, Nick Helm wrote:
> On Sun, 08 Apr 2018 at 03:01:19 +1200, Alan Third wrote:
> 
> > I’ve been thinking about this and I’m not entirely sure it’s a good
> > idea to expose these modifier presses to Emacs. At least not by
> > default.
> 
> For what it's worth, I think this is a much better idea. It's a
> significant change from what we have now though.

Indeed. But given it doesn’t work without a reasonable amount of work
just now, I suspect it’s not going to affect too many people.

> > ns-drag-n-drop is perfectly capable of determining what action to take
> > by examining what it’s been passed in the event. 
> 
> Based solely on the received operation mask (which may include the
> user's OS-level modifers) and the data type sitting on the pb, right?

Well, that’s not quite what I was thinking of. At the moment, in C, we
build a list like:

    '(file "filename")
    '(url "http://url")
    '(nil "plain text")

So I was thinking that using the operation mask and PB type we can
choose the correct type of list (like, it’s a file, but we only have
the link mask, so use the nil list). Then ns-drag-n-drop just looks at
that list and handles it.

But...

> > If there’s a good use case for allowing these modifiers to leak
> > through then I suggest we make it customisable. 
> 
> Personally, I don't see a need. I think it's better to just do what the
> user expects, which is what I think you're proposing. Experts can still
> intercept the event in Lisp (BTW, it's interesting to note that the
> mac-port doesn't expose incoming dnd events to Lisp at all and silently
> ignores all the modifiers).

This is probably a better idea, we pass the string, the type (from the
PB) and the mask to lisp, and then let ns-drag-n-drop sort it out.
Like you say, if an expert wants to do something different they can
then write their own function.

So in C we just construct something like:

    '(file
      (ns-drag-operation-copy
       ns-drag-operation-link)
      "filename")

Are you wanting to give this a go? I’m happy to work on it if not.

> If the dnd code gets a rewrite, it would be nice to add support for
> Emacs as the dragging source as well as a few nicities like mouse
> pointer overlays on copy operations etc.

I’m not sure what the deal is with drag‐n‐drop from Emacs on
GNU/Linux, but assuming it works under GNUstep as well as Cocoa we
could add Emacs as a drag source.

> I'm guessing the boat has well and truly sailed for such major tweaks in
> Emacs 26 though. Instead, would it make sense to change the default
> binding on macOS so at least basic (unmodified) text dnd works out of
> the box for the upcoming release?

That’s up to Eli. What would we have to do, just change the default
bindings in ns-win.el?

(global-set-key [drag-n-drop] 'ns-drag-n-drop)
(global-set-key [C-drag-n-drop] 'ns-drag-n-drop-other-frame)
(global-set-key [M-s-drag-n-drop] 'ns-drag-n-drop-as-text)
(global-set-key [C-M-s-drag-n-drop] 'ns-drag-n-drop-as-text-other-frame)

BTW, is it just me or does ‘ns-drag-n-drop-as-text-other-frame’ not
actually do anything different from ‘ns-drag-n-drop-as-text’?

...

OK. This is a disaster area. The current binding works if I drag and
drop text from iterm2, but fails if I drag from textedit. So I think
we need to bind every combination that includes meta to text dragging:

(global-set-key [M-drag-n-drop] 'ns-drag-n-drop-as-text)
(global-set-key [M-s-drag-n-drop] 'ns-drag-n-drop-as-text)
(global-set-key [C-M-s-drag-n-drop] 'ns-drag-n-drop-as-text)

And probably drop ns-drag-n-drop-as-text-other-frame, unless someone
can show that it does actually do what it’s supposed to.
-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30929; Package emacs. Full text available.

Message received at 30929 <at> debbugs.gnu.org:


Received: (at 30929) by debbugs.gnu.org; 9 Apr 2018 01:52:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 08 21:52:13 2018
Received: from localhost ([127.0.0.1]:42988 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f5Lye-0001Nx-RN
	for submit <at> debbugs.gnu.org; Sun, 08 Apr 2018 21:52:13 -0400
Received: from mail-me1aus01on0117.outbound.protection.outlook.com
 ([104.47.116.117]:20085 helo=AUS01-ME1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nick@HIDDEN>) id 1f5Lyb-0001Ni-VY
 for 30929 <at> debbugs.gnu.org; Sun, 08 Apr 2018 21:52:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
 bh=rZ5cVyweZbzks5jMpWqLnM6mY1w2y9ZoZzz9jZK0ukI=;
 b=WnIRhskSdkK8T7bzJ3DCwRvswmkob832uV3T9Glm4V/tjeZEvJpOBZlK3BGPBB/aCQY0pl7qe9o+6BdNxgO6VDYvMZGPcortn9YvFtEUY8Sb6uwzC64Z6tCPCQH0B+oWNLYFSaE4Wm/67pvCmaZGXdK9uu3Sghk3R9go0A83j1Q=
Authentication-Results: spf=none (sender IP is )
 smtp.mailfrom=nick@HIDDEN; 
Received: from oberon.local (125.239.174.80) by
 SY2PR01MB2908.ausprd01.prod.outlook.com (2603:10c6:1:1e::21) with Microsoft
 SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Mon, 9
 Apr 2018 01:52:01 +0000
From: Nick Helm <nick@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#30929: 26.0.91; Text drag and drop does not work
References: <m24ll564kk.fsf@HIDDEN>
 <20180325115732.GA52626@HIDDEN>
 <m2bmf8sgj6.fsf@HIDDEN>
 <20180407150119.GA1190@HIDDEN>
Date: Mon, 09 Apr 2018 13:51:58 +1200
In-Reply-To: <20180407150119.GA1190@HIDDEN> (Alan Third's
 message of "Sat, 7 Apr 2018 16:01:19 +0100")
Message-ID: <m2fu45jge9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: [125.239.174.80]
X-ClientProxiedBy: SYAPR01CA0038.ausprd01.prod.outlook.com (2603:10c6:1:1::26)
 To SY2PR01MB2908.ausprd01.prod.outlook.com
 (2603:10c6:1:1e::21)
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: ea48f9f2-a710-4ba6-8fae-08d59dbc7ce4
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0;
 RULEID:(7020095)(4652020)(7021125)(5600026)(4604075)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020);
 SRVR:SY2PR01MB2908; 
X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2908;
 3:ciBzz7KLat3t0FpxCu2Qd05J03Ezi8rePnTQZZA1qj0qYnnhes2LMLygFx0cWVN8FQcguN+N/lQHo7oN5rrsHyX6IYYpEcCfC2E5voVcnk8eRAisFNa8vjxvMP7WgKYdSR3v1lywSwLA/GqQr6tHf8fBF6CEUDuOPDkS28RwM1/cxrxYgPZ4NIECF+f7kpMc8b6Iz27mZ1qZ95mwfI6UxUZxy0nnfKLHMDGtwlZX+70QMntBiK8N03od/ggY6U2F;
 25:3Y4KsdKCtyo+ScHo/W4dfdRMc0hwA4zCyoWLbo1cD4Pk6fBIUe8YNe/RSNH/jrzlZl3pSACXxGWauLDMsd+nv1CU6BriUULBGiuyMN4Kr0WrpbJf438A/pEV5fEGAbGg9p78DpSXc//SmVRz1U9SeiWnEnROVuNWKuJlca6ZQJob12rUzVc8r46MwALnhheQiGY+RtE3p5aBacU+xz84KqzSSlnN5QMigxm7BOkkYlVyECI5LGQYayPLyo7vY0W6ZAsOlugm/lWO1X+6w3mm5NEyoBt0oqAoImJOuMYGMNi5iN4DZCoNGusmK44iRJua8Ferwz2DNPL6r08PhwryeQ==;
 31:d0gTpSziGc2xbHlrqW9RSSx3H2DD9pTjuyyJN1j5zpY8l+84Rr+Y8F7z0mxybCmPTNq3gy3DS80SgOCURF2YSbbHrAZykIwdOF8l9PWIoUFBQEVH6TVg3g5x73bCEkPO4Np7mwZSNRzFID3qAnWwTQJVYKV30HEiRgyforJ6XG3ZLBK+YQ/GG+shPCyRBq24/xtNz3ZzEiL1BUjeGm2GWmfcvJzCQtAQAo71mRRPKlc=
X-MS-TrafficTypeDiagnostic: SY2PR01MB2908:
X-Microsoft-Antispam-PRVS: <SY2PR01MB2908832FDBE3980B38E9CFA1FEBF0@HIDDEN>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0;
 RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231221)(944501327)(52105095)(6041310)(20161123562045)(2016111802025)(20161123558120)(20161123560045)(20161123564045)(6043046)(6072148)(201708071742011);
 SRVR:SY2PR01MB2908; BCL:0; PCL:0; RULEID:; SRVR:SY2PR01MB2908; 
X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2908;
 4:GqIKIYsqCtF3G0Mlj777xJdn8Fkhfh4TqzWSuxsTK/ytIkBAmOhqMHlPxRpmalwxBcVxulgzCxBnk2HaetGki/R5t8znUMFgsVCW/OE9U+PIDBD6/sNRm5QuN/TGGEahZQqH6XTFJ0C2TCEUqVLFaa6Q0dIhPOZ4/Of4HhAPbiq2XqzvV+n+ZrzeibjBEGw9dlUbvjngHgLGRwGL+WcxsYhIbaX0sui3Pi3hXPodRgXlTE+9QLuwVc5bWHpra4UCaEFGTHqYb+se0kQ7HPNbkg==
X-Forefront-PRVS: 0637FCE711
X-Forefront-Antispam-Report: SFV:NSPM;
 SFS:(10019020)(346002)(396003)(39380400002)(366004)(376002)(39830400003)(189003)(199004)(16526019)(2616005)(956004)(229853002)(5890100001)(52146003)(2486003)(50466002)(52116002)(23676004)(97736004)(6486002)(11346002)(6506007)(47776003)(386003)(446003)(476003)(66066001)(6246003)(76176011)(53936002)(58126008)(6512007)(106356001)(74482002)(68736007)(6116002)(36756003)(3846002)(478600001)(93886005)(2906002)(7736002)(305945005)(6916009)(186003)(6666003)(5660300001)(26005)(486006)(25786009)(4326008)(8746002)(8936002)(86362001)(81166006)(81156014)(8676002)(316002)(105586002);
 DIR:OUT; SFP:1102; SCL:1; SRVR:SY2PR01MB2908; H:oberon.local; FPR:; SPF:None;
 LANG:en; PTR:InfoNoRecords; MX:1; A:1; 
Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate
 permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTWTJQUjAxTUIyOTA4OzIzOk82NmlVVjM3NzdmV3c0cC9oOXpod2YxdzNW?=
 =?utf-8?B?Q3hUamhTTFhFcG1aVEgrMVVmSUs0dS9TQUdpeTBvTW16UFhrUG1KRUM0Nlh0?=
 =?utf-8?B?b296TGl4YmFkZ2VLUTNRVlhqaHdXMEYwMXBRMENUUmsyc1ZIeUNJdnpJdS9a?=
 =?utf-8?B?WHJJWm5GVlZpZGZ6REVWeTFuck02NDBiSHdpZ2NzSEdIL2RRaG5FK1E0MVp5?=
 =?utf-8?B?TEtSYTV3QW4zSHBWQkZKM01zOFJ0dWMyTE5UbHErU3Q5dXdZWU5Rdk9laHZx?=
 =?utf-8?B?d3ZEVUUwWWtlZVJvZ0QzZEc4WERjRzZuVCt4NFdsQ2FyUnR0T0o0NWdaZGFH?=
 =?utf-8?B?UnVYTHg0L0FDL0UrMVFmeVZjaG11Y0dqbjYrS3BZWHljRjZIWnVIMzkwbHhY?=
 =?utf-8?B?Y25WUTAzYU9kZlM3VEpWZS9OSnFSVGZOczh4dE85bGVJczhsUXpRbEZiVFFs?=
 =?utf-8?B?TE51T2xXRDZUUCtzNzJuc3IzN0pJSk1GMTdDMml0TzZXSjlrOUJYdERDT3Vz?=
 =?utf-8?B?ZDhHTUN6WEliTG5mVFVkTWI3TXJnZlZEYWh3Y09MSTVmdEExak8wZHliWVMr?=
 =?utf-8?B?Nml0WXZ1RldpWHI0MU1YZUNVRk93QWVqT1ZUWXNKR0JFS2JzTk9EeH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;
 5:BHdtE6c2T9/MRhZ+hTvUV4hQCtRbnQrrt1VIJLQbs6xspzaNv9IOprK8v1S6RtYNFW2u5NO2bfC+ZmkZY3cu2/r9OMCf6vAm4RztlqxvN3/DDYUvvimvV7f5vMBqrB+s64YJytUQxGS5lAtbaYWpu1IpsdA87jfmnaj8HAsMUnA=;
 24:/D+lH7mLNQiMYQbO9oRLMDzaskkzu0YePuGNEhmO3ynaQxwZPiBguTw/ttRSkVwF8RdryHDacu77uOixx6BoY4i/vhMzbKNg6zHMq/ahNWk=
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-Microsoft-Exchange-Diagnostics: 1; SY2PR01MB2908;
 7:5nlzrVZM6myexnQx9peW9uLRbNd3LYRqUOyyDan7XaPv/dnYIT80io1NT3ifrdAK9ZxVfLtRv9BYqIPkALMBp7YSVxOf1Qvvr455klnsh+kDtzH7OyM98okKgQ+yRqgzUBqni9V+8qwO1LPkMVxluimhFGOA0E4jSMzkh7fviyYzDe+i2ZILl47MB/JIkf8bhTVR5WGNwX7b6OZWWI5CicqMElKoxIXyGxKwxobwDOTPp8XglULiQ4FW9VHjAiZH
X-OriginatorOrg: tenpoint.co.nz
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2018 01:52:01.4747 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: ea48f9f2-a710-4ba6-8fae-08d59dbc7ce4
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: ed686f26-19e8-407b-91d0-7364c1c6f5cf
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY2PR01MB2908
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 30929
Cc: 30929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sun, 08 Apr 2018 at 03:01:19 +1200, Alan Third wrote:

> On Wed, Mar 28, 2018 at 10:20:13PM +1300, Nick Helm wrote:
>> > It=E2=80=99s setting the actual modifier keys, so when a user changes =
those
>> > keys=E2=80=99 settings this breaks.
>> >
>> > You can also set these flags by using the actual modifier keys.
>> >
>> > This looks like it matches up with what Apple expect you to do, but it
>> > doesn=E2=80=99t seem to match up with Emacs=E2=80=99s event handling v=
ery well.=20
>>=20
>> That looks about right to me too, it least it matches the general
>> approach in the docs.
>>=20
>> I had a go at mapping the hardware modifiers to Emacs events (and
>> existing bindings) for each drag type and DragOperation mask. Patch
>> attached. This doesn't support the ns-right-*-modifiers yet, but they
>> should be pretty easy to add if you want to go this way.

> I=E2=80=99ve been thinking about this and I=E2=80=99m not entirely sure i=
t=E2=80=99s a good
> idea to expose these modifier presses to Emacs. At least not by
> default.

For what it's worth, I think this is a much better idea. It's a
significant change from what we have now though.

> ns-drag-n-drop is perfectly capable of determining what action to take
> by examining what it=E2=80=99s been passed in the event.=20

Based solely on the received operation mask (which may include the
user's OS-level modifers) and the data type sitting on the pb, right?

> This does mean that the modifier presses aren=E2=80=99t customisable, but=
 they
> will always match the OS default at least.

Isn't that a good thing in this case? If dnd is considered an OS-level
event, then adding customisable modifier bindings was actually the wrong
thing to do.

> If there=E2=80=99s a good use case for allowing these modifiers to leak
> through then I suggest we make it customisable.=20

Personally, I don't see a need. I think it's better to just do what the
user expects, which is what I think you're proposing. Experts can still
intercept the event in Lisp (BTW, it's interesting to note that the
mac-port doesn't expose incoming dnd events to Lisp at all and silently
ignores all the modifiers).


If the dnd code gets a rewrite, it would be nice to add support for
Emacs as the dragging source as well as a few nicities like mouse
pointer overlays on copy operations etc.

I'm guessing the boat has well and truly sailed for such major tweaks in
Emacs 26 though. Instead, would it make sense to change the default
binding on macOS so at least basic (unmodified) text dnd works out of
the box for the upcoming release?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30929; Package emacs. Full text available.

Message received at 30929 <at> debbugs.gnu.org:


Received: (at 30929) by debbugs.gnu.org; 7 Apr 2018 15:01:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 07 11:01:31 2018
Received: from localhost ([127.0.0.1]:41314 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f4pLP-000051-JM
	for submit <at> debbugs.gnu.org; Sat, 07 Apr 2018 11:01:31 -0400
Received: from mail-wr0-f171.google.com ([209.85.128.171]:39953)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <athird@HIDDEN>) id 1f4pLN-0008WS-L5
 for 30929 <at> debbugs.gnu.org; Sat, 07 Apr 2018 11:01:30 -0400
Received: by mail-wr0-f171.google.com with SMTP id n2so4102921wrj.7
 for <30929 <at> debbugs.gnu.org>; Sat, 07 Apr 2018 08:01:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20161025;
 h=sender:date:from:to:cc:subject:message-id:references:mime-version
 :content-disposition:content-transfer-encoding:in-reply-to
 :user-agent; bh=z6B0PJPNyoBzn/fSjCfKB/eo1uS7XT3JpM2o0KoiQI8=;
 b=ntgSHEvXQAYsvlRKsopFg2/J6ThJzYdVMt+fk+bfke46UNvrss9K9BNcYORVTLBJmT
 psFD2996cX3LAis2R4NYrd42RQCPfd7o2jpusRB/jkva72aoS6+XdiICgc+BmJjFZ3Yw
 4Au+bhl1FapiF4z5Z0z04dwAUOhdAkqRGoiK/obhJnL2tbcRpXcALtOUXg7U1S6nd6e5
 cqptCe3KGx2if2ESA1+7J/iD99VwQOHW/lL5glQma4+MwxjDOkufHtSCLwPcZDHwVnXE
 GqtsSgnD6Ov5DuawCdrduKNcJGojVKkqQHZM8c3Go+vwHPGXtkUVgyUEyv68Ivt6ZrB9
 tCEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:date:from:to:cc:subject:message-id
 :references:mime-version:content-disposition
 :content-transfer-encoding:in-reply-to:user-agent;
 bh=z6B0PJPNyoBzn/fSjCfKB/eo1uS7XT3JpM2o0KoiQI8=;
 b=FlbzFjh5AzWTc7Jsta+FHxJ33RvCDli3jKE+GUbSrzq1TLymmmF06hLHrO064i3tKx
 GiX9kn2xuwMKiI/FpEwyrcdwPJouaX+alhfBqZKIu01iWIXxwa19xOBqq7yyMO5nMTpg
 ywsY+rFYnSzBZgQeXyXRUOHvoX4pm8Jt/OT9EAfsgCXAN+bMCFaAnGpQAKE1vinQ7QXS
 wui9F5DpV/igUZ6I2ngsyafKEBSrtcl1AXPLrQXpr+MZkE56fWML4mow7XI8XAwwBYaT
 Uq4T4Tf3z+nW4OIikwfnaAD+fYlOo2t7ADSya29hv9VCapHewhL2UnMIpLDxnYssjocX
 vwtg==
X-Gm-Message-State: AElRT7EJGSIcs1olOVqW+ercBx/QJe5WUFZ3tQHtDSJSzs9PL6QJh8hE
 e8oeCUiVQLQEEFjjOuoj4WXYQtOA
X-Google-Smtp-Source: AIpwx49VBCK75H5hb6U1E5gNNrAtj8Gs0lNmvvRIUfy5QEVNSrBQkxYp/qJd2GxZWehAhQEgQIoVgg==
X-Received: by 10.223.131.229 with SMTP id 92mr23104123wre.249.1523113283622; 
 Sat, 07 Apr 2018 08:01:23 -0700 (PDT)
Received: from breton.holly.idiocy.org
 (ip6-2001-08b0-03f8-8129-60c2-1a84-b7b0-dd5f.holly.idiocy.org.
 [2001:8b0:3f8:8129:60c2:1a84:b7b0:dd5f])
 by smtp.gmail.com with ESMTPSA id k11sm16065715wmi.35.2018.04.07.08.01.21
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 07 Apr 2018 08:01:22 -0700 (PDT)
Date: Sat, 7 Apr 2018 16:01:19 +0100
From: Alan Third <alan@HIDDEN>
To: Nick Helm <nick@HIDDEN>
Subject: Re: bug#30929: 26.0.91; Text drag and drop does not work
Message-ID: <20180407150119.GA1190@HIDDEN>
References: <m24ll564kk.fsf@HIDDEN>
 <20180325115732.GA52626@HIDDEN>
 <m2bmf8sgj6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <m2bmf8sgj6.fsf@HIDDEN>
User-Agent: Mutt/1.9.3 (2018-01-21)
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 30929
Cc: 30929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Wed, Mar 28, 2018 at 10:20:13PM +1300, Nick Helm wrote:
> > It’s setting the actual modifier keys, so when a user changes those
> > keys’ settings this breaks.
> >
> > You can also set these flags by using the actual modifier keys.
> >
> > This looks like it matches up with what Apple expect you to do, but it
> > doesn’t seem to match up with Emacs’s event handling very well. 
> 
> That looks about right to me too, it least it matches the general
> approach in the docs.
> 
> I had a go at mapping the hardware modifiers to Emacs events (and
> existing bindings) for each drag type and DragOperation mask. Patch
> attached. This doesn't support the ns-right-*-modifiers yet, but they
> should be pretty easy to add if you want to go this way.

Except we have no way of identifying whether the left or right
modifier has been pressed.

I’ve been thinking about this and I’m not entirely sure it’s a good
idea to expose these modifier presses to Emacs. At least not by
default.

I have two reasons for avoiding this:

  1. They’re not always modifier presses. Applications set these flags
     themselves and it seems strange to me that it can look like a modifier
     has been pressed when the user has done no such thing.

  2. It’s so very easy to break the bindings by rebinding the
     modifiers, which is often recommended for people using non‐US
     keyboards.

ns-drag-n-drop is perfectly capable of determining what action to take
by examining what it’s been passed in the event. So I think that if we
receive, for example, a filename and only NSDragOperationLink is set
then we should mark the filename as a string and then send the event
to lisp where it is inserted as plain text. But if NSDragOperationCopy
or NSDragOperationGeneric is set we mark it as a file and lisp will
open the file.

This does mean that the modifier presses aren’t customisable, but they
will always match the OS default at least.

If there’s a good use case for allowing these modifiers to leak
through then I suggest we make it customisable. That way new users
aren’t going to completely break drag‐n‐drop accidentally, and people
who know what they’re doing can break it as much as they want and live
with the consequences.

-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30929; Package emacs. Full text available.
Changed bug title to '26.0.91; [macOS] Text drag and drop does not work' from '26.0.91; Text drag and drop does not work' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 30929 <at> debbugs.gnu.org:


Received: (at 30929) by debbugs.gnu.org; 28 Mar 2018 09:20:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 28 05:20:33 2018
Received: from localhost ([127.0.0.1]:56542 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f17Fw-0004Qv-Qb
	for submit <at> debbugs.gnu.org; Wed, 28 Mar 2018 05:20:33 -0400
Received: from mail-me1aus01on0102.outbound.protection.outlook.com
 ([104.47.116.102]:4352 helo=AUS01-ME1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nick@HIDDEN>) id 1f17Fr-0004QX-8t
 for 30929 <at> debbugs.gnu.org; Wed, 28 Mar 2018 05:20:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
 bh=P+gyoqg2yzLASj9kHkcURS4nJtyeBFmkw2AVjxFnmv0=;
 b=l7T2wIpLV5XL6VbCE7oJuI+/iswcmOfBeAEeylDg3o5XzJignkqv3w2oru49IJo+ga9Xe7QgvhrU4IlkNyHzoKMrw4zFkQ7oouLXT4HSm/5SeSy/ZlDb63lL7AUCVBlOT1TKol+SXwycvEljVvc42mZItfPZiQnmmvgE6tDuZ7Y=
Authentication-Results: spf=none (sender IP is )
 smtp.mailfrom=nick@HIDDEN; 
Received: from jupiter.local (125.239.174.80) by
 SYAPR01MB2909.ausprd01.prod.outlook.com (2603:10c6:1:10::23) with Microsoft
 SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Wed, 28
 Mar 2018 09:20:18 +0000
From: Nick Helm <nick@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#30929: 26.0.91; Text drag and drop does not work
References: <m24ll564kk.fsf@HIDDEN>
 <20180325115732.GA52626@HIDDEN>
Date: Wed, 28 Mar 2018 22:20:13 +1300
In-Reply-To: <20180325115732.GA52626@HIDDEN> (Alan Third's
 message of "Sun, 25 Mar 2018 12:57:32 +0100")
Message-ID: <m2bmf8sgj6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (darwin)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Originating-IP: [125.239.174.80]
X-ClientProxiedBy: ME2PR01CA0009.ausprd01.prod.outlook.com
 (2603:10c6:201:15::21) To SYAPR01MB2909.ausprd01.prod.outlook.com
 (2603:10c6:1:10::23)
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 058ec655-8a21-4437-447c-08d5948d1feb
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0;
 RULEID:(7020095)(4652020)(7021125)(5600026)(4604075)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(49563074)(7193020);
 SRVR:SYAPR01MB2909; 
X-Microsoft-Exchange-Diagnostics: 1; SYAPR01MB2909;
 3:Hw0Q+WriLCWqaoPakiMpnoYsjn9N3MuumYjA5hK8tSGpcq1lAawuX9fzuThT6DyxOGLna8z4vtIq52+wzsmA5KZQiN3MFmkzOIwWJM0xznUGQUG6L86rVzfmaCMV0s04+9fLaIDtlA3EJ/GE0lvlLNBiDEK2X6zg9tXBx53NtiHpzSyuTb6DcO+3CNBbCw8OPjfR3MvrSY9uM/EgQH3prTXGpcHT7A93wZdaXOUTJmvgMBpUjkNKEqBSoPegAkLa;
 25:Vj9Xb340ns62SWgvsr1f8+fAadx0e6LGpIKgifpCGZOnsCaqmGYjdqZCUl4n6CApjQoIvC1cJxvzs1A+Xs5/Rxb6YltCI6ieXTM/klmIzLlCLQWfYoZY7PqVE+Lp7kL2blaHmh6bfRnVwVM6DlFu4xIVFVFFfkZqgo5POVvH0KTGR1QBewv1H2+sEVd0ox3xmIYH1WboeG8H/B99rTrKyNKgu2dDIS8wgEovh1hFK87X7zIVZDBUQTWeBBQoq6eflNYRzO1q9pu3pqQ84gyeovWE6CNxh9OCQsPHNzcx94m4hHfnz8tz1/IzU4HdaguzgzlNcnB3lCIJC1X5ZbtqlQ==;
 31:JllRf/solhK+wq2Ze1BrzmoNRm8DxZXQ0Vm4B6Z0R/TZYrpOHT0T6chyfjFCOC7Morq8IM2dnqVlHLXQm21T97AQv6cOJeJ4YwFqHvc6on6ap0dtR8E5gG0KPYZUKGd8EY9fKc+hGRy39IfaYFOuOAHzgvljkOFlU6uqp2B1mzQDq3FEDzDeCjj9ffVru/gQMEr0t3uzSeHLoBX5hQCVYPetiKl5A8qJumG1oVgC6Wg=
X-MS-TrafficTypeDiagnostic: SYAPR01MB2909:
X-Microsoft-Antispam-PRVS: <SYAPR01MB2909F4E32A7050EED53A22E4FEA30@HIDDEN>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0;
 RULEID:(102415395)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(93001095)(6041310)(2016111802025)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6043046)(6072148)(201708071742011);
 SRVR:SYAPR01MB2909; BCL:0; PCL:0; RULEID:; SRVR:SYAPR01MB2909; 
X-Microsoft-Exchange-Diagnostics: 1; SYAPR01MB2909;
 4:lzofBfYzSQCcH8gLyjHmZLVfiIGN22l30qVMxXW+jP2+AbvYmis9Mn+4Pd57diR+x41vIL8dbEETfVRQvTBRPwrwnxMtQ10is4BhBa3AtLeRG+OsX7GrZqHhWeoOwqcskUxGWBhORmmw76W1ZlDAAhJhoYyyl2LYsXAwjxlBvf0ZTTX9QknHx3qKo+bd53SnurbuJf1kdBquLqP3rNOqoCUBWxmw+3opziOIMlugHz1VZfKCt22O0KNtv5ftSUYVzQAZhVBtPJvnyh1zI2Kfdw==
X-Forefront-PRVS: 06259BA5A2
X-Forefront-Antispam-Report: SFV:NSPM;
 SFS:(10019020)(39380400002)(346002)(366004)(376002)(396003)(39830400003)(199004)(189003)(74482002)(5660300001)(84326002)(6512007)(53936002)(11346002)(2476003)(58126008)(6916009)(478600001)(4610100001)(4326008)(8936002)(105586002)(3846002)(229853002)(76176011)(6116002)(33964004)(106356001)(52116002)(446003)(86362001)(6506007)(386003)(26005)(316002)(68736007)(16526019)(97736004)(568964002)(6246003)(2906002)(16586007)(476003)(486005)(956004)(25786009)(2616005)(486005)(6666003)(6486002)(5890100001)(36756003)(305945005)(186003)(81166006)(81156014)(8676002)(7736002)(66066001);
 DIR:OUT; SFP:1102; SCL:1; SRVR:SYAPR01MB2909; H:jupiter.local; FPR:; SPF:None;
 PTR:InfoNoRecords; A:1; MX:1; LANG:en; 
Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate
 permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SYAPR01MB2909;
 23:iSTRSyXkXmKAkxX1PT3bV9UuOwmBny9tPZJzUqgLZ?=
 =?us-ascii?Q?lVDBfb1eqCBXXO+4yK94xoWIerDgO6/Q8X9/UzoyATpWBu4nKyVthv/5YyX0?=
 =?us-ascii?Q?dx1TOoEfOG8HOtGebybp/TdCso20A3xBjIsDmXlusu84t+Su/KqMg6f7s8Fn?=
 =?us-ascii?Q?5f2VZgDdrut1hhfQ3x5D32ePS202GDDn2tncvuk986/LmerPoUD3WNEjPZVE?=
 =?us-ascii?Q?4eVAWJ2pbB+sZb9+usCjnz4YP+Lu4TGEvFr43/FJ2wgnmZmEoLDisl4vTkXt?=
 =?us-ascii?Q?W6FBWSHc9mcMdIXjv/jA+b8/tBrZVnxwUAR7sP0/MBAkxk31GGO/Pr7qgm23?=
 =?us-ascii?Q?whyj/u4duG63+fmHLXEl3lnmocUf/CLoL7tJT3r9jST3Y9Bi2sCuUSGRuF4p?=
 =?us-ascii?Q?NHkiTcoP8N4IlanGsoZWBW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DM=
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-Microsoft-Exchange-Diagnostics: 1; SYAPR01MB2909;
 7:QtiJbcqu7R3nJHjkzyIkXkq+vpD2ZnX/j/23lU0Pum65t16mbEo/QFD36DQMn2Mbl6P7tbEAfkXJWrYSK3i6eTHs5g+WzXNcXEadzrzjQ4oyFEn0kjrN4KzHxfBccLZ7njPxHQUqkGIjcwdY7ZqZ3KZBp7FfgK2BN33SrC3Nw22a8VeG8UksNT1cOIa4t/vp9U404JhfjYvoEcqwLkAMPM3F7cvLGmmxkQDgy/RIq8C2SvpKd+eH5E1R/mCAn9Dz
X-OriginatorOrg: tenpoint.co.nz
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2018 09:20:18.6323 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 058ec655-8a21-4437-447c-08d5948d1feb
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: ed686f26-19e8-407b-91d0-7364c1c6f5cf
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYAPR01MB2909
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 30929
Cc: 30929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Alan,

On Sun, 25 Mar 2018 at 12:57:32 +0100, Alan Third wrote:

> Looks like this is how the modifiers are set in performDragOperation
>
>   if (! (op & (NSDragOperationMove|NSDragOperationDelete)) &&
>       // URL drags contain all operations (0xf), don't allow all to be se=
t.
>       (op & 0xf) !=3D 0xf)
>     {
>       if (op & NSDragOperationLink)
>         modifiers |=3D NSEventModifierFlagControl;
>       if (op & NSDragOperationCopy)
>         modifiers |=3D NSEventModifierFlagOption;
>       if (op & NSDragOperationGeneric)
>         modifiers |=3D NSEventModifierFlagCommand;
>     }
>
>   modifiers =3D EV_MODIFIERS2 (modifiers);
>
> It=E2=80=99s setting the actual modifier keys, so when a user changes tho=
se
> keys=E2=80=99 settings this breaks.
>
> You can also set these flags by using the actual modifier keys.
>
> This looks like it matches up with what Apple expect you to do, but it
> doesn=E2=80=99t seem to match up with Emacs=E2=80=99s event handling very=
 well.=20

That looks about right to me too, it least it matches the general
approach in the docs.

I had a go at mapping the hardware modifiers to Emacs events (and
existing bindings) for each drag type and DragOperation mask. Patch
attached. This doesn't support the ns-right-*-modifiers yet, but they
should be pretty easy to add if you want to go this way.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Improve-handling-of-drag-and-drop-modifiers-on-NS.patch

From 9a177de5bacde98ef5c513c73f7aa48b58909af4 Mon Sep 17 00:00:00 2001
From: Nick Helm <nick@HIDDEN>
Date: Wed, 28 Mar 2018 21:06:59 +1300
Subject: [PATCH] Improve handling of drag-and-drop modifiers on NS.

---
 src/nsterm.m | 56 +++++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 41 insertions(+), 15 deletions(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index c8ae31abc0..4ad60d1b6a 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -8115,19 +8115,6 @@ -(BOOL)performDragOperation: (id <NSDraggingInfo>) sender
   pb = [sender draggingPasteboard];
   type = [pb availableTypeFromArray: ns_drag_types];
 
-  if (! (op & (NSDragOperationMove|NSDragOperationDelete)) &&
-      // URL drags contain all operations (0xf), don't allow all to be set.
-      (op & 0xf) != 0xf)
-    {
-      if (op & NSDragOperationLink)
-        modifiers |= NSEventModifierFlagControl;
-      if (op & NSDragOperationCopy)
-        modifiers |= NSEventModifierFlagOption;
-      if (op & NSDragOperationGeneric)
-        modifiers |= NSEventModifierFlagCommand;
-    }
-
-  modifiers = EV_MODIFIERS2 (modifiers);
   if (type == 0)
     {
       return NO;
@@ -8141,13 +8128,24 @@ -(BOOL)performDragOperation: (id <NSDraggingInfo>) sender
       if (!(files = [pb propertyListForType: type]))
         return NO;
 
+      if (! (op & (NSDragOperationMove | NSDragOperationDelete)) &&
+          (op & 0xf) != 0xf)
+        {
+          if (op & NSDragOperationGeneric)
+            modifiers |= NSEventModifierFlagCommand;
+          else if (op & NSDragOperationLink)
+            modifiers |= NSEventModifierFlagControl;
+          else if (op & NSDragOperationCopy)
+            modifiers |= NSEventModifierFlagOption;
+        }
+
       fenum = [files objectEnumerator];
       while ( (file = [fenum nextObject]) )
         {
           emacs_event->kind = DRAG_N_DROP_EVENT;
           XSETINT (emacs_event->x, x);
           XSETINT (emacs_event->y, y);
-          emacs_event->modifiers = modifiers;
+          emacs_event->modifiers = EV_MODIFIERS2 (modifiers);
           emacs_event->arg =  list2 (Qfile, build_string ([file UTF8String]));
           EV_TRAILER (theEvent);
         }
@@ -8158,10 +8156,22 @@ -(BOOL)performDragOperation: (id <NSDraggingInfo>) sender
       NSURL *url = [NSURL URLFromPasteboard: pb];
       if (url == nil) return NO;
 
+      if (! (op & (NSDragOperationMove|NSDragOperationDelete)) &&
+          // URL drags contain all operations (0xf), don't allow all to be set.
+          (op & 0xf) != 0xf)
+        {
+          if (op & NSDragOperationGeneric)
+            modifiers |= NSEventModifierFlagCommand;
+          else if (op & NSDragOperationLink)
+            modifiers |= NSEventModifierFlagControl;
+          else if (op & NSDragOperationCopy)
+            modifiers |= NSEventModifierFlagOption;
+        }
+
       emacs_event->kind = DRAG_N_DROP_EVENT;
       XSETINT (emacs_event->x, x);
       XSETINT (emacs_event->y, y);
-      emacs_event->modifiers = modifiers;
+      emacs_event->modifiers = EV_MODIFIERS2 (modifiers);
       emacs_event->arg =  list2 (Qurl,
                                  build_string ([[url absoluteString]
                                                  UTF8String]));
@@ -8183,6 +8193,22 @@ -(BOOL)performDragOperation: (id <NSDraggingInfo>) sender
       if (! (data = [pb stringForType: type]))
         return NO;
 
+      if (! (op & (NSDragOperationMove | NSDragOperationDelete)) &&
+          (op & 0xf) != 0xf)
+        {
+          if ((op & NSDragOperationCopy) && (op & NSDragOperationGeneric))
+            modifiers |= meta_modifier;
+          else if (op & NSDragOperationGeneric)
+            modifiers |= (parse_solitary_modifier (ns_command_modifier)
+                          | meta_modifier);
+          else if (op & NSDragOperationCopy)
+            modifiers |= (parse_solitary_modifier (ns_alternate_modifier)
+                          | meta_modifier);
+          else
+            modifiers |= (parse_solitary_modifier (ns_control_modifier)
+                          | meta_modifier);
+        }
+
       emacs_event->kind = DRAG_N_DROP_EVENT;
       XSETINT (emacs_event->x, x);
       XSETINT (emacs_event->y, y);
-- 
2.14.3 (Apple Git-98)


--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30929; Package emacs. Full text available.

Message received at 30929 <at> debbugs.gnu.org:


Received: (at 30929) by debbugs.gnu.org; 25 Mar 2018 11:57:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 07:57:43 2018
Received: from localhost ([127.0.0.1]:52164 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f04HP-0003eN-3S
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 07:57:43 -0400
Received: from mail-wr0-f181.google.com ([209.85.128.181]:39600)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <athird@HIDDEN>) id 1f04HN-0003e8-Ir
 for 30929 <at> debbugs.gnu.org; Sun, 25 Mar 2018 07:57:41 -0400
Received: by mail-wr0-f181.google.com with SMTP id c24so16167890wrc.6
 for <30929 <at> debbugs.gnu.org>; Sun, 25 Mar 2018 04:57:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20161025;
 h=sender:date:from:to:cc:subject:message-id:references:mime-version
 :content-disposition:content-transfer-encoding:in-reply-to
 :user-agent; bh=Uex/N8k1hofXTqckWMOvR5gjSkpq8AWZ/V6hrga+Dq0=;
 b=PV3c4WBC0nEjLDPxm5UK4Qx5RkQeQ422jqHoAPEkicqd40NxNV4tQ+RQMNjakSsQFt
 ImmfbxnyUd3C80IuQ0FrHlhkRSNRFK4a7c2JpcCArdn78TwAdaqe48RKMjr1vAmpgnyy
 4O0Ije7TmgRmqP5WgDFmjdNQk4ICG3y+F1syJHZT3bNr1y4nvSZAwvnFlyeEYqyKDD/d
 YLLNqG5QPdg6ILDUBtwySFbge6z7eKNORRL1RrKnrKo1VeZy047EPeBfjgLs2Wy+FCFe
 Ml2EEUp6rbfWG5+kwo9S7dNHQwcB+irebsMUlW3Apj0HYIaoSBDOkbATl69wceEyN9Hc
 1+RQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:date:from:to:cc:subject:message-id
 :references:mime-version:content-disposition
 :content-transfer-encoding:in-reply-to:user-agent;
 bh=Uex/N8k1hofXTqckWMOvR5gjSkpq8AWZ/V6hrga+Dq0=;
 b=eYK/mMOgyfoMmZt+W/WL36Ouzy3w+ETJYaH7ySbTPTGPoRE76G8rD5jm2P0Wio7KDU
 0FTa71VzLtjAVVnb/kE9842oKyFxrmXkQItc+wJjZ0Tpg92NRKivNRcb1szt1zsv+bFV
 ybknsOWY5M+jjDeZbsfWZBQsK0o5/tUaJplT4a7LxlxT4gLiKpO8HZlfwiWHtjTY7pJw
 qEisjnX0GNz1/ujzp6dE12RFd4enpcMS1Xg20NmO5tx6wM20xNLLiQN3wR6EIV7DJI3t
 mGxmki32lPcw4gr2/Neb9mMRTcTlEotyoXzOMsPNPOgY3g0mmSsthXAQmpx5+aahtdI/
 h3EA==
X-Gm-Message-State: AElRT7HwP6mDyD34yqWRCHrq1Jum2Buq1gD+MZXWU5zkVmM8st/GGJ43
 VMJroZZ35xyQwr1ldXDX0+3dwQya+/Q=
X-Google-Smtp-Source: AG47ELvdyFekft3Ytv3jQ/hBNlbJ4B/7aQ/NCZ4aYrti/iExdf9of6UR/JNm/hJ1Ece3DnvvK3+QTg==
X-Received: by 10.223.182.132 with SMTP id j4mr27808023wre.66.1521979055555;
 Sun, 25 Mar 2018 04:57:35 -0700 (PDT)
Received: from breton.holly.idiocy.org
 (ip6-2001-08b0-03f8-8129-d867-79aa-2be9-0ac9.holly.idiocy.org.
 [2001:8b0:3f8:8129:d867:79aa:2be9:ac9])
 by smtp.gmail.com with ESMTPSA id d18sm1245070wre.5.2018.03.25.04.57.34
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 25 Mar 2018 04:57:34 -0700 (PDT)
Date: Sun, 25 Mar 2018 12:57:32 +0100
From: Alan Third <alan@HIDDEN>
To: Nick Helm <nick@HIDDEN>
Subject: Re: bug#30929: 26.0.91; Text drag and drop does not work
Message-ID: <20180325115732.GA52626@HIDDEN>
References: <m24ll564kk.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <m24ll564kk.fsf@HIDDEN>
User-Agent: Mutt/1.9.3 (2018-01-21)
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 30929
Cc: 30929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

On Sun, Mar 25, 2018 at 01:28:11AM +1300, Nick Helm wrote:
> 
> On MacOS text drag-n-drop does not work out of the box. Also a dnd 
> event seems to be bound to different functions depending on modifier 
> settings.
> 
> Emacs -Q
> 
> C-h v ns-command-modifier -> "It's value is super"
> 
> C-h k <drag and drop external text> 
>   -> "<M-s-drag-n-drop> is undefined"
> 
> (setq ns-command-modifier 'none)
> C-h k <drag and drop external text>
>   -> "<M-drag-n-drop> at that spot runs the command
>       ns-drag-n-drop-as-text"
> 
> (setq ns-command-modifier 'control)
> C-h k <drag and drop external text>
>   -> "<C-M-drag-n-drop> at that spot runs the command
>       ns-drag-n-drop-as-text-other-frame"

Looks like this is how the modifiers are set in performDragOperation

  if (! (op & (NSDragOperationMove|NSDragOperationDelete)) &&
      // URL drags contain all operations (0xf), don't allow all to be set.
      (op & 0xf) != 0xf)
    {
      if (op & NSDragOperationLink)
        modifiers |= NSEventModifierFlagControl;
      if (op & NSDragOperationCopy)
        modifiers |= NSEventModifierFlagOption;
      if (op & NSDragOperationGeneric)
        modifiers |= NSEventModifierFlagCommand;
    }

  modifiers = EV_MODIFIERS2 (modifiers);

It’s setting the actual modifier keys, so when a user changes those
keys’ settings this breaks.

You can also set these flags by using the actual modifier keys.

This looks like it matches up with what Apple expect you to do, but it
doesn’t seem to match up with Emacs’s event handling very well. I’ll
have to read up on it and have a think to see if I can work out a
solution.
-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30929; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Mar 2018 19:59:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 24 15:59:44 2018
Received: from localhost ([127.0.0.1]:51793 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ezpKJ-00080z-TQ
	for submit <at> debbugs.gnu.org; Sat, 24 Mar 2018 15:59:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47841)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nick@HIDDEN>) id 1ezpKI-00080n-2S
 for submit <at> debbugs.gnu.org; Sat, 24 Mar 2018 15:59:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nick@HIDDEN>) id 1ezpJ9-00012c-1V
 for submit <at> debbugs.gnu.org; Sat, 24 Mar 2018 15:59:37 -0400
Received: from lists.gnu.org ([2001:4830:134:3::11]:56917)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <nick@HIDDEN>) id 1eznqI-0000v0-Gw
 for submit <at> debbugs.gnu.org; Sat, 24 Mar 2018 14:24:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40878)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nick@HIDDEN>) id 1eznlo-0007Sc-KL
 for bug-gnu-emacs@HIDDEN; Sat, 24 Mar 2018 14:24:38 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: ***
X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE,
 RECEIVED_FROM_WINDOWS_HOST,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nick@HIDDEN>) id 1eznkk-00069l-Ie
 for bug-gnu-emacs@HIDDEN; Sat, 24 Mar 2018 14:20:00 -0400
Received: from mail-sy3aus01on0134.outbound.protection.outlook.com
 ([104.47.117.134]:43424 helo=AUS01-SY3-obe.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <nick@HIDDEN>) id 1eziHV-00024y-0n
 for bug-gnu-emacs@HIDDEN; Sat, 24 Mar 2018 08:28:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
 bh=MoZp9s8peuYa7dPqqwXlJM+9KDrtwBEl2nFenIhUn1E=;
 b=TGmfGS0NbsxoraqGdK8rnK3SHZw3MqqryUpjta/8UaGBKszmtf24I5TADnIE26uERP7X8KO2w4yNrgQxiEfOwVhfJvk10SKP4s7JviBeEo1qvkwyfxeYAe6MgtZJF4fhVc3ub/yqwbUF7szbW2/EWDq3NNenT3WdxC+7rimP4k8=
Authentication-Results: spf=none (sender IP is )
 smtp.mailfrom=nick@HIDDEN; 
Received: from jupiter.local (125.239.174.80) by
 ME2PR01MB2900.ausprd01.prod.outlook.com (2603:10c6:201:22::17) with Microsoft
 SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Sat, 24
 Mar 2018 12:28:16 +0000
From: Nick Helm <nick@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.0.91; Text drag and drop does not work
Date: Sun, 25 Mar 2018 01:28:11 +1300
Message-ID: <m24ll564kk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Originating-IP: [125.239.174.80]
X-ClientProxiedBy: ME1PR01CA0147.ausprd01.prod.outlook.com
 (2603:10c6:200:1b::32) To ME2PR01MB2900.ausprd01.prod.outlook.com
 (2603:10c6:201:22::17)
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: c7352a9d-c6f9-4d2a-adc7-08d59182b811
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0;
 RULEID:(7020095)(4652020)(7021125)(5600026)(4604075)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020);
 SRVR:ME2PR01MB2900; 
X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2900;
 3:K2jOOJa9cijkQU/LtGrV4wzsiy18j9vtAXPv9jxlke75jBB5i7R+KdkC1L8bJdguZ8EuksjOwGbveeBI2nPKrUV9WyAmLb6D+er+iVyL1C6QwHvEh99x9KXVdS4kXkYy79aKbDASPicME9nNOMDm80MG/Zb2gv+qNEl3aOtN3FRNThoNCtTZogEOqyUqj+O3HWun3qZ2n3vTOXIeOfKbSKrLjUkQmiX53rPKrnieTCBIBj65qj2p0TzYGlzu0sBN;
 25:EgK2HbeKzP55gH8AajDvSeZNP8VmkJ35eKHgtE1BOPAJeA+Suc+sTeZyGnN+gq9FfSBCZtrEweDFdGx9cTs0aaVy7NWyqET7tg0b01U9980pLVbRBf5BSVBP8RtZYIutz/aCHCt2Pn1fpbPt/nMtMiI+YfgmGIs62OyHe9+zB1uK91DhR5a1hhX3EXBPtGEmFYutczMLHRUpW3/PEdX5369goaUeMZeLViXYMq6nh1mXSPzWvLHjBR85r5FB2Fw6CEt7j6HKdB7NcRfVx78FQgzyq5tEiZEVMwauSJXyNAUartPUJRy6kXFsuvkFE62Bra9YJ92VPn2gMrcztySomQ==;
 31:HafeiiMJod1rgYXZBNk7TgrUq+GdTN5mPSPStjmR9ioFb7J4MpGUdeBR+d76lUcIsndeZU1kmowUJ4zyYzzMB/leKN7wMRsi/aPBSso1OxESrbg6YvhPyGWsKtubo6K3RJT4aW6SJ05mWNthO9lDvY5Ta8kt3GSbJWqJ0+qgcTNiYv5My7VTkUnY6zvc2qrhFTYeTJGEnCBIqvpVi5j8OCEY7Uy+fJKldjmK2Ljva0E=
X-MS-TrafficTypeDiagnostic: ME2PR01MB2900:
X-Microsoft-Antispam-PRVS: <ME2PR01MB2900389C605F7F9719FB4E44FEAF0@HIDDEN>
X-Exchange-Antispam-Report-Test: UriScan:(158342451672863)(265634631926514)(788757137089); 
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0;
 RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(10201501046)(3002001)(6041310)(20161123560045)(20161123564045)(20161123558120)(2016111802025)(20161123562045)(6043046)(6072148)(201708071742011);
 SRVR:ME2PR01MB2900; BCL:0; PCL:0; RULEID:; SRVR:ME2PR01MB2900; 
X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2900;
 4:6+zY3BPndT1/h3qQqGGKn1RQNVWpAOnDMlR4X9r44OV36nJL/gUvpZ055r1bxE8/5QtIDmNrq+yf7qFyFvw3SUzXmNoY3sDAICPf9NqxN4eufL34da8jXHGc+DunBPe3vZ0OVQqTISjvt1lOezck2rl/ChKvIkWXjMDaPFsCMXpKX4r2pT+cHhSiFjhjHo0wFdW5XKRLrGVHPOoNuY3TdyJQ02laHDW5ziiuqKM5Y8KwQkF7ndEYXlDBCW0HilnKTbklLJW29zzJ4g/B+qCEs++r38oI/UIWOGveuoi9hyE4TS61wc7sMq1UGA3NDkbZNTJ5NwbDTO6MtDwJTInlRpBOwXCaObcjhUki6ZJzR6Qy67jb2gyPQ+nmy0tChjLK
X-Forefront-PRVS: 0621E7E436
X-Forefront-Antispam-Report: SFV:NSPM;
 SFS:(10019020)(396003)(366004)(346002)(39380400002)(39830400003)(376002)(377424004)(189003)(199004)(2906002)(68736007)(2351001)(5660300001)(6486002)(66066001)(316002)(478600001)(6512007)(53936002)(6116002)(8676002)(47776003)(956004)(8936002)(6916009)(81156014)(16526019)(551544002)(81166006)(45080400002)(105586002)(2361001)(36756003)(3846002)(106356001)(58126008)(6506007)(186003)(97736004)(7736002)(51416003)(25786009)(26005)(305945005)(48376002)(6666003)(86362001)(52116002)(74482002)(16586007)(59450400001)(386003)(50466002)(2616005);
 DIR:OUT; SFP:1102; SCL:1; SRVR:ME2PR01MB2900; H:jupiter.local; FPR:; SPF:None;
 PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate
 permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; ME2PR01MB2900;
 23:eV2/00XYaitYVVH21OxzDKPFsCAd7UinkSEUQXHNZ?=
 =?us-ascii?Q?R57GbISqKwdzo47iiGArNurD1Q14n3cYF1CVre0xGomV8gC0Wk7Pr0MNaAGP?=
 =?us-ascii?Q?eOkAu8KVdisJqSysZT5yG9B6MS+HyxAaDVKziLz5qsVPd16zNtDfTVB30fPP?=
 =?us-ascii?Q?yK2sXNQUY9MHSNjxAfQ6JKBuMsHFghpb47kKuOJ0Esj9i+CoPO7tcODersug?=
 =?us-ascii?Q?bLVh8JVjtDkbvblutal42iT+LMd8bE/d+J2oN0Oo4iVc3E4RQN6exkGNJjD0?=
 =?us-ascii?Q?fmyaNCubdLWTxfeAG8LMF1JLFkwUwk9kK3yv1IF9GrZ+JpH0npKRVds9NsXk?=
 =?us-ascii?Q?lXn74N2v5kxMA7JNzj2v+PfR2v3h2ai13+PXiGIOr8EbTd2h1x/C+3+ZloO3?=
 =?us-ascii?Q?HqZB1oQC8J2PtDTm7hSqFewqf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PrKQmxmt9gN1b9fzcnWhwj2cscUbB6NmB1DQckebEHIbYHpORyc7ohrJ1cJKe71XLtL6KMEMS87zdSHLERjeV1P+BLPvzaCTuLfu5dIndrryMF8PFWK093wTnOvIO4z/IT3p2e4DejHB5h0A3rDz6KVzrl7jTVx2aZb8l03Q9YmxP71z6l
X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2900;
 6:SvhaEU8vCyoThbev2BSslm+0BNeeWuDeB+8mUx+yLJNZafrJ1ggy4XDgQwLG39/8tX0hzkoUX3FBNEeUEDC/mV265LaoshGHPTiKh5k/D/J7t6xfHiUgmE+LjYxiKFYVWotQ59mNBd2dZ7/dgn7YXYKcIr9TFmluBHYtMkOF+vczM/gxXNGeeKrL/YBktGmDbMxkPUhEvQ7XzScGb+rjoh21vae5ah2JgeeoT2DGOyKkWl7G8+VDzHDtaII2dtEjUR0/VyQf8yLBxOur4InABZDbOiOhu1R7b8rS3iDVtxWy9IjmOOlBs1eppjxhGmtDRQsWSnA4WBQVQN4JYISBNpUlc5fIfjzc9UUI9vLKN9TcYpR+1jSF+igxehM6t61x1X/WhQAs5sffO8bLHignvCoe8nSn9wrRDPWfLvQPTGbDtbS7MFeD5khSMLnmRplpq53j+zgzG+buV713N4ciGw==;
 5:i1frxFChboEvTBOFEt4fFi2P4N4x/Hxji6IO062E4eZgmMIt/0oI+NEKylqnE/Kym04b4PFYuv0zZGZ3vY9Tz3+IFmf2hshHXtGKWTmfuhSJENEpzi3Mg4OTieLpcFAtzEj+AHSQL5AnpW0hwU4WbbDn/5w46Rnm0SYltBBYGoQ=;
 24:foyLfnNkqHfu1XxvB+dknnmE/35JD+t6MDql6li5VXbkT6p2vopSY6aPt/ll1STyPc+UgETCuo8Wyqq+PAUqBVj27lQucdnnZpxwPvsW3nY=
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-Microsoft-Exchange-Diagnostics: 1; ME2PR01MB2900;
 7:XNitp5bEoKvfk9/z723vYovsr0+wPLca0b+XdFMqaoHb9obHPrz7mP9D8xRVqgDmQ09jsuH/tn+0Z56XXbmbckPRvcjAAYPhcM3pGbAJWpDUI0hnrAtkMvxxPCvsuSAptI7z2IZBOg61RouzBXEwbYx73Kd1/6wfjr8mAVcKMqUIUbM98aVcKx9HDURu5frp/pmuC9OGCstmnYc2pNxNDwavJ+GVF4NnPHnWh7PMpTKgGLQD3wHOKikZ+GkwAbxa
X-OriginatorOrg: tenpoint.co.nz
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2018 12:28:16.0704 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: c7352a9d-c6f9-4d2a-adc7-08d59182b811
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: ed686f26-19e8-407b-91d0-7364c1c6f5cf
X-MS-Exchange-Transport-CrossTenantHeadersStamped: ME2PR01MB2900
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)


On MacOS text drag-n-drop does not work out of the box. Also a dnd 
event seems to be bound to different functions depending on modifier 
settings.

Emacs -Q

C-h v ns-command-modifier -> "It's value is super"

C-h k <drag and drop external text> 
  -> "<M-s-drag-n-drop> is undefined"

(setq ns-command-modifier 'none)
C-h k <drag and drop external text>
  -> "<M-drag-n-drop> at that spot runs the command
      ns-drag-n-drop-as-text"

(setq ns-command-modifier 'control)
C-h k <drag and drop external text>
  -> "<C-M-drag-n-drop> at that spot runs the command
      ns-drag-n-drop-as-text-other-frame"

etc


In GNU Emacs 26.0.91 (build 1, x86_64-apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D102))
 of 2018-03-22 built on jupiter.local
Repository revision: f8cad16bb3272a8069b3008019f9d18516aef1a5
Windowing system distributor 'Apple', version 10.3.1561
Recent messages:
Opening nnimap server on Office365...
Opening connection to localhost via shell...
Opening connection to localhost...done
Opening nnimap server on Office365...done
Opening nntp server on Gmane...done
1 new newsgroup has arrived
Checking new news...
Reading active file via nnnil...done
Reading active file via nndraft...done
Checking new news...done

Configured using:
 'configure --with-gnutls=no'

Configured features:
JPEG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS THREADS LCMS2

Important settings:
  value of $LANG: en_NZ.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Text

Minor modes in effect:
  savehist-mode: t
  global-eldoc-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  visual-line-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow gnus-cite sort mail-extr nnir emacsbug sendmail gnus-demon
nndraft nnmh cl-extra help-mode utf-7 network-stream nsm auth-source
cl-seq eieio eieio-core cl-macs eieio-loaddefs starttls nnfolder nnnil
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art
mm-uu mml2015 mm-view mml-smime smime dig mailcap nntp gnus-cache
gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail
mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int
gnus-range message rmc puny seq byte-opt bytecomp byte-compile cconv
format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047
rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit time dired-x
easymenu dired dired-loaddefs pcase savehist easy-mmode iso-transl
edmacro kmacro cl-loaddefs cl-lib gv plain-theme time-date tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win
ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow
isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote kqueue cocoa ns lcms2 multi-tty
make-network-process emacs)

Memory information:
((conses 16 282192 18056)
 (symbols 48 28457 1)
 (miscs 40 54 283)
 (strings 32 54201 2932)
 (string-bytes 1 1603692)
 (vectors 16 43788)
 (vector-slots 8 823234 17468)
 (floats 8 217 385)
 (intervals 56 246 0)
 (buffers 992 16))




Acknowledgement sent to Nick Helm <nick@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#30929; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 24 Apr 2018 12:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.