GNU bug report logs - #20804
24.4; XdndDrop does not use time stamp

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: Urs Fleisch <urs.fleisch@HIDDEN>; Keywords: patch; dated Sat, 13 Jun 2015 18:43:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 20804) by debbugs.gnu.org; 1 Aug 2019 21:40:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 01 17:40:12 2019
Received: from localhost ([127.0.0.1]:55538 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1htIo0-0001s0-DR
	for submit <at> debbugs.gnu.org; Thu, 01 Aug 2019 17:40:12 -0400
Received: from quimby.gnus.org ([80.91.231.51]:47018)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1htIny-0001rq-7y
 for 20804 <at> debbugs.gnu.org; Thu, 01 Aug 2019 17:40:10 -0400
Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1htInu-00049U-Tt; Thu, 01 Aug 2019 23:40:09 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Urs Fleisch <urs.fleisch@HIDDEN>
Subject: Re: bug#20804: 24.4; XdndDrop does not use time stamp
References: <20150613104213.50d24f9d@pristina>
Date: Thu, 01 Aug 2019 23:40:06 +0200
In-Reply-To: <20150613104213.50d24f9d@pristina> (Urs Fleisch's message of
 "Sat, 13 Jun 2015 10:42:13 +0200")
Message-ID: <87k1bwbm4p.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:  Urs Fleisch <urs.fleisch@HIDDEN> writes: [...] > However, 
 I think that also the behavior of Emacs could > be improved. It does not
 use the time stamp which can be found in the > XdndDrop message when
 requesting the selection. The XDND specificatio [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.0 TVD_RCVD_IP            Message was received from an IP address
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20804
Cc: 20804 <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 (-)

Urs Fleisch <urs.fleisch@HIDDEN> writes:

[...]

> However, I think that also the behavior of Emacs could
> be improved. It does not use the time stamp which can be found in the
> XdndDrop message when requesting the selection. The XDND specification
> <http://www.newplanetsoftware.com/xdnd/> states:
>
> XdndDrop
>
> Sent from source to target to complete the drop.
>
>     data.l[0] contains the XID of the source window.
>     data.l[1] is reserved for future use (flags).
>     data.l[2] contains the time stamp for retrieving the data. (new in
>     version 1)
>
> When passing the value found in data.l[2] as the optional time stamp
> argument to x-get-selection-internal, dropping from Qt 5 works with
> Emacs. I have attached a patch fixing this.
>
> ~~~~
> --- x-dnd.el.orig	2015-06-13 09:52:02.999811917 +0200
> +++ x-dnd.el	2015-06-13 09:53:30.808247335 +0200
> @@ -496,10 +496,12 @@
>  	((equal "XdndDrop" message)
>  	 (if (windowp window) (select-window window))
>  	 (let* ((dnd-source (aref data 0))
> +		(timestamp (aref data 2))
>  		(value (and (x-dnd-current-type window)
>  			    (x-get-selection-internal
>  			     'XdndSelection
> -			     (intern (x-dnd-current-type window)))))
> +			     (intern (x-dnd-current-type window))
> +			     timestamp)))
>  		success action)

(I'm going through old bug reports that have unfortunately not gotten
any responses.)

I'm not really familiar with how drag and drop works, but I think this
sounds like it makes sense.  Does anybody else with more knowledge (than
me) about this area think so too?

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




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

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


Received: (at submit) by debbugs.gnu.org; 13 Jun 2015 18:42:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 13 14:42:13 2015
Received: from localhost ([127.0.0.1]:52932 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z3qNg-0006XJ-21
	for submit <at> debbugs.gnu.org; Sat, 13 Jun 2015 14:42:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54899)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <urs.fleisch@HIDDEN>) id 1Z3h1L-0004LB-9W
 for submit <at> debbugs.gnu.org; Sat, 13 Jun 2015 04:42:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <urs.fleisch@HIDDEN>) id 1Z3h1E-0007wl-3t
 for submit <at> debbugs.gnu.org; Sat, 13 Jun 2015 04:42:25 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50,
 FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:40817)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <urs.fleisch@HIDDEN>) id 1Z3h1D-0007wh-Vr
 for submit <at> debbugs.gnu.org; Sat, 13 Jun 2015 04:42:24 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40152)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <urs.fleisch@HIDDEN>) id 1Z3h1B-0008NP-UY
 for bug-gnu-emacs@HIDDEN; Sat, 13 Jun 2015 04:42:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <urs.fleisch@HIDDEN>) id 1Z3h17-0007tx-Qu
 for bug-gnu-emacs@HIDDEN; Sat, 13 Jun 2015 04:42:21 -0400
Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:35206)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <urs.fleisch@HIDDEN>) id 1Z3h17-0007tU-FE
 for bug-gnu-emacs@HIDDEN; Sat, 13 Jun 2015 04:42:17 -0400
Received: by wiga1 with SMTP id a1so33908169wig.0
 for <bug-gnu-emacs@HIDDEN>; Sat, 13 Jun 2015 01:42:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=date:from:to:subject:message-id:mime-version:content-type;
 bh=rmPEPL4x3BXxKqnkFvItzAKDKP89D1LjyngylygnkxY=;
 b=eh2s2FsOrv069LW2a/DU3E/Lzikvl7iPokmUzEYS4JYFBw8xcX3RqloVewvDEJyjNm
 CYYt5MsSV+6i4Vc8f8BTP40+g+WF9zeAhxaz7rt/8nVlCnj76WTqYgbMNpqX6L8NdcK5
 Lg7qeEL8qj49HlOFxeUReJAbHlOLh6TTG6fMtHb0SYgWV8j2k8S/WDfWihYU3efBx2a4
 3Bn/ltQfjWGp1O8uBjLibBds+nKTBlomNJAUcFC/hANKk6eFCZWk2tOkoV3+WFtsjvjM
 jDdH1uq/MeXHUQk4XUK4iXHySB6M7PJg5w66e5ETa3eBl/TjW/HHHjrtCgbbEPHu9I60
 xlVg==
X-Received: by 10.180.106.97 with SMTP id gt1mr13531449wib.37.1434184936213;
 Sat, 13 Jun 2015 01:42:16 -0700 (PDT)
Received: from pristina (77-58-180-61.dclient.hispeed.ch. [77.58.180.61])
 by mx.google.com with ESMTPSA id l6sm9355419wjz.4.2015.06.13.01.42.15
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 13 Jun 2015 01:42:15 -0700 (PDT)
Date: Sat, 13 Jun 2015 10:42:13 +0200
From: Urs Fleisch <urs.fleisch@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.4; XdndDrop does not use time stamp
Message-ID: <20150613104213.50d24f9d@pristina>
X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="MP_/1tpx=bNeQHwS4AoYmPooW_d"
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.0 (---)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 13 Jun 2015 14:42:10 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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.0 (---)

--MP_/1tpx=bNeQHwS4AoYmPooW_d
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

Drag and drop from Qt 5 applications does not work on Linux (X11). This
can be easily reproduced using the draggabletext example from Qt 5 and
trying to drop a text into Emacs. I have created a bug report for Qt 5,
you can find it at <https://bugreports.qt.io/browse/QTBUG-45812>. To
resume what I reported there:

Emacs receives an XdndDrop message, but the value received by
(x-get-selection-internal 'XdndSelection "text/uri-list") is nil. Qt 5
receives the get selection request in
QXcbDrag::handleSelectionRequest() (in qxcbdrag.cpp) and only returns
the selection if the time stamps match. However, when dropping into
Emacs, the time stamps differ and no matching selection is found.

Of course, Qt 5 should not be so picky about these time stamps and try
to find a matching selection also in the case where the time stamps
differ, e.g. using the IDs of XdndAware windows. I have created a
patch for Qt which fixes this and I hope that it will be handled by the
Qt maintainers. However, I think that also the behavior of Emacs could
be improved. It does not use the time stamp which can be found in the
XdndDrop message when requesting the selection. The XDND specification
<http://www.newplanetsoftware.com/xdnd/> states:

XdndDrop

Sent from source to target to complete the drop.

    data.l[0] contains the XID of the source window.
    data.l[1] is reserved for future use (flags).
    data.l[2] contains the time stamp for retrieving the data. (new in
    version 1)

When passing the value found in data.l[2] as the optional time stamp
argument to x-get-selection-internal, dropping from Qt 5 works with
Emacs. I have attached a patch fixing this.

~~~~
--- x-dnd.el.orig	2015-06-13 09:52:02.999811917 +0200
+++ x-dnd.el	2015-06-13 09:53:30.808247335 +0200
@@ -496,10 +496,12 @@
 	((equal "XdndDrop" message)
 	 (if (windowp window) (select-window window))
 	 (let* ((dnd-source (aref data 0))
+		(timestamp (aref data 2))
 		(value (and (x-dnd-current-type window)
 			    (x-get-selection-internal
 			     'XdndSelection
-			     (intern (x-dnd-current-type window)))))
+			     (intern (x-dnd-current-type window))
+			     timestamp)))
 		success action)
 
 	   (setq action (if value
~~~~

Regards,
Urs Fleisch




In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.9)
 of 2015-03-21 on kissel, modified by Debian
Windowing system distributor `The X.Org Foundation', version
11.0.11701000 System Description:	Ubuntu 15.04

Configured using:
 `configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
 --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
 -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Important settings:
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
  show-paren-mode: t
  delete-selection-mode: t
  recentf-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-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
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
- d n <tab> . o r i g <return> <down> <return> C-x 
b i n i <tab> C-g <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <file> <Open Recent> 
</home/urs/.emacs.d/init.el> <down-mouse-5> <mouse-5> 
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <down-mouse-5> 
<mouse-5> <double-down-mouse-5> <double-mouse-5> <down-mouse-1> 
<mouse-1> C-a C-SPC <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> M-w C-x b <return> C-s - h a n d l e - x d n 
d C-s C-a C-y C-SPC <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <delete> 
<up> C-x C-s M-x e d i f f - b u f f <tab> <return> 
<return> C-g M-x <up> <return> x <tab> . <tab> o <tab> 
<tab> <tab> C-g C-x C-f x d <tab> <backspace> - d <tab> 
. o <tab> <return> M-x <up> <return> <return> <return> 
n n n q y <switch-frame> <down-mouse-1> <mouse-1> <help-echo> 
<help-echo> <down-mouse-1> <mouse-1> C-x 1 M-x r e 
p o r t - e m <tab> <return>

Recent messages:
Saving file /home/urs/xdnd/emacs/x-dnd.el...
Wrote /home/urs/xdnd/emacs/x-dnd.el
Quit [2 times]
Computing differences between x-dnd.el.orig and x-dnd.el ...
Buffer A: Processing difference region 0 of 2
Buffer B: Processing difference region 0 of 2
Processing difference regions ... done
Region 1 in buffer A is empty [2 times]
Refining difference region 2 ...
Quit this Ediff session? (y or n) y

Load-path shadows:
~/.emacs.d/vendor/python-mode/python-mode
hides /usr/share/emacs24/site-lisp/python-mode/python-mode
~/.emacs.d/vendor/pymacs-0.25/pymacs
hides /usr/share/emacs24/site-lisp/pymacs/pymacs /usr/share/emacs24/site-lisp/cmake-data/cmake-mode
hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/24.4/site-lisp/debian-startup
hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/dictionaries-common/flyspell
hides /usr/share/emacs/24.4/lisp/textmodes/flyspell /usr/share/emacs24/site-lisp/dictionaries-common/ispell
hides /usr/share/emacs/24.4/lisp/textmodes/ispell

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils ediff-merg ediff-wind ediff-diff ediff-mult
ediff-help ediff-init ediff-util ediff misearch multi-isearch dired-aux
dired browse-url saveplace paren grep compile comint ansi-color ring
cus-start cus-load pymacs advice help-fns delsel recentf tree-widget
wid-edit cl-loaddefs cl-lib easymenu server 50magit time-date tooltip
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer 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 make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 120917 9552)
 (symbols 48 22357 0)
 (miscs 40 78 250)
 (strings 32 21584 8579)
 (string-bytes 1 718116)
 (vectors 16 19152)
 (vector-slots 8 1185919 183954)
 (floats 8 80 323)
 (intervals 56 1352 0)
 (buffers 960 18)
 (heap 1024 39074 1259))

--MP_/1tpx=bNeQHwS4AoYmPooW_d
Content-Type: text/x-patch
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=xdnd.patch

--- x-dnd.el.orig	2015-06-13 09:52:02.999811917 +0200
+++ x-dnd.el	2015-06-13 09:53:30.808247335 +0200
@@ -496,10 +496,12 @@
 	((equal "XdndDrop" message)
 	 (if (windowp window) (select-window window))
 	 (let* ((dnd-source (aref data 0))
+		(timestamp (aref data 2))
 		(value (and (x-dnd-current-type window)
 			    (x-get-selection-internal
 			     'XdndSelection
-			     (intern (x-dnd-current-type window)))))
+			     (intern (x-dnd-current-type window))
+			     timestamp)))
 		success action)
 
 	   (setq action (if value

--MP_/1tpx=bNeQHwS4AoYmPooW_d--




Acknowledgement sent to Urs Fleisch <urs.fleisch@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#20804; 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, 1 Aug 2019 21:45:01 UTC

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