GNU bug report logs - #3468
Support drag and drop of text on MS Windows

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; Severity: wishlist; Reported by: "Erdkern Erdkern" <Erdkern2000@HIDDEN>; Keywords: help; dated Fri, 5 Jun 2009 00:00:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) help. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Removed tag(s) moreinfo. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'Support drag and drop of text on MS Windows' from 'drag and drop text' Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 3468) by debbugs.gnu.org; 30 Sep 2019 15:50:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 30 11:50:06 2019
Received: from localhost ([127.0.0.1]:60264 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iExw6-0003SJ-6Y
	for submit <at> debbugs.gnu.org; Mon, 30 Sep 2019 11:50:06 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55716)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iExw5-0003Rj-1t
 for 3468 <at> debbugs.gnu.org; Mon, 30 Sep 2019 11:50:05 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:41509)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iExvz-0006l1-Mv; Mon, 30 Sep 2019 11:49:59 -0400
Received: from [176.228.60.248] (port=3670 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iExvz-00068g-28; Mon, 30 Sep 2019 11:49:59 -0400
Date: Mon, 30 Sep 2019 18:49:57 +0300
Message-Id: <83sgodbx7e.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-reply-to: <87zhilajkd.fsf@HIDDEN> (message from Lars Ingebrigtsen on Mon, 
 30 Sep 2019 17:29:54 +0200)
Subject: Re: bug#3468: drag and drop text
References: <20090604070321.177690@HIDDEN> <87zhilajkd.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 3468
Cc: 3468 <at> debbugs.gnu.org, Erdkern2000@HIDDEN
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: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Date: Mon, 30 Sep 2019 17:29:54 +0200
> Cc: 3468 <at> debbugs.gnu.org
> 
> I tried this in Emacs 27, but on GNU/Linux, and it worked fine for me
> there.  Are you still seeing this problem?

Emacs on MS-Windows doesn't support drag-n-drop of arbitrary text, it
only supports drag-n-drop of file names.  This is indicated by the
"you can't do that" icon shown as the mouse pointer when you attempt
to drop the text onto the Emacs frame.

The Emacs User manual says in "Drag and Drop":

     The XDND and Motif drag and drop protocols, and the old KDE 1.x
  protocol, are currently supported.

which doesn't include any MS-Windows protocols.

The reason for not supporting this on MS-Windows is that the relevant
system APIs are only available for C++ programs.  If someone knows how
to work around this limitation, I'm sure we will welcome patches or at
least an explanation for how to do that in plain C.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#3468; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 3468) by debbugs.gnu.org; 30 Sep 2019 15:30:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 30 11:30:00 2019
Received: from localhost ([127.0.0.1]:60190 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iExce-00079Y-1x
	for submit <at> debbugs.gnu.org; Mon, 30 Sep 2019 11:30:00 -0400
Received: from quimby.gnus.org ([80.91.231.51]:55664)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iExcc-00079Q-1h
 for 3468 <at> debbugs.gnu.org; Mon, 30 Sep 2019 11:29:58 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1iExcY-0002q5-N1; Mon, 30 Sep 2019 17:29:57 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: "Erdkern Erdkern" <Erdkern2000@HIDDEN>
Subject: Re: bug#3468: drag and drop text
References: <20090604070321.177690@HIDDEN>
Date: Mon, 30 Sep 2019 17:29:54 +0200
In-Reply-To: <20090604070321.177690@HIDDEN> (Erdkern Erdkern's message of
 "Thu, 04 Jun 2009 09:03:21 +0200")
Message-ID: <87zhilajkd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: "Erdkern Erdkern" <Erdkern2000@HIDDEN> writes: > I use
 windows
 as operating system. I want to drag text from text > editor or browser (say
 Wordpad or Firefox) and drop it in emacs, but > this is not possible, drop
 is not allowed. On the other side [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 3468
Cc: 3468 <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 (-)

"Erdkern Erdkern" <Erdkern2000@HIDDEN> writes:

> I use windows as operating system. I want to drag text from text
> editor or browser (say Wordpad or Firefox) and drop it in emacs, but
> this is not possible, drop is not allowed. On the other side, if I
> drag an unknown filetype (say, an *.rdp-File) into emacs, it is
> dropped as text.

(I'm going through old bug reports that unfortunately didn't get any
response at the time.)

I tried this in Emacs 27, but on GNU/Linux, and it worked fine for me
there.  Are you still seeing this problem?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#3468; Package emacs. Full text available.
Severity set to `wishlist' from `normal' Request was from Chong Yidong <cyd@HIDDEN> to control@HIDDEN. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 4 Jun 2009 23:51:43 +0000
From Erdkern2000@HIDDEN Thu Jun  4 16:51:43 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: *
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=1.6 required=4.0 tests=FOURLA,MONEY,STOCKLIKE
	autolearn=no version=3.2.5-bugs.debian.org_2005_01_02
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n54NpcbA011522
	for <submit@HIDDEN>; Thu, 4 Jun 2009 16:51:39 -0700
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1MCMif-0007LM-6L
	for bug-gnu-emacs@HIDDEN; Thu, 04 Jun 2009 19:51:37 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1MCMiY-0007HB-GZ
	for bug-gnu-emacs@HIDDEN; Thu, 04 Jun 2009 19:51:35 -0400
Received: from [199.232.76.173] (port=48140 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1MCMVC-0008Ss-Ac
	for bug-gnu-emacs@HIDDEN; Thu, 04 Jun 2009 19:37:42 -0400
Received: from mail.gmx.net ([213.165.64.20]:35975)
	by monty-python.gnu.org with smtp (Exim 4.60)
	(envelope-from <Erdkern2000@HIDDEN>)
	id 1MC8eF-0005p9-62
	for bug-gnu-emacs@HIDDEN; Thu, 04 Jun 2009 04:50:07 -0400
Received: (qmail 28079 invoked by uid 0); 4 Jun 2009 07:03:24 -0000
Received: from 134.147.82.58 by www135.gmx.net with HTTP;
 Thu, 04 Jun 2009 09:03:21 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 04 Jun 2009 09:03:21 +0200
From: "Erdkern Erdkern" <Erdkern2000@HIDDEN>
Message-ID: <20090604070321.177690@HIDDEN>
MIME-Version: 1.0
Subject: drag and drop text
To: bug-gnu-emacs@HIDDEN
X-Authenticated: #8514071
X-Flags: 0001
X-Mailer: WWW-Mail 6100 (Global Message Exchange)
X-Priority: 3
X-Provags-ID: V01U2FsdGVkX1/AF3ZYrGvAEyIoGbbrqL5s7uoH+AxdSXbrZwb1cC
 F4mAJ6zHILAZ69pM57SqJ7MNUKZTDEhVKeEg== 
Content-Transfer-Encoding: 7bit
X-GMX-UID: 1gROeSQLeWUkdGWM6G9nV3ojL0tsZo1/
X-FuHaFi: 0.52
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3)

I use windows as operating system. I want to drag text from text editor or browser (say Wordpad or Firefox) and drop it in emacs, but this is not possible, drop is not allowed. On the other side, if I drag an unknown filetype (say, an *.rdp-File) into emacs, it is dropped as text. 

In GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
 of 2008-09-06 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: DEU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  cua-mode: t
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-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
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <down> 
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <tool-bar> 
<kill-buffer> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done
Loading help-mode...done
Auto-saving...done
Undo! [29 times]
Auto-saving...done
*** E-Mail body has been placed on clipboard, please paste them here! ***

-- 
GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.!
http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a




Acknowledgement sent to "Erdkern Erdkern" <Erdkern2000@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3468; 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: Thu, 13 Aug 2020 01:45:01 UTC

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