From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.bugs Subject: bug#28620: Mouse drag event records wrong window for release when crossing frames Date: Wed, 27 Sep 2017 11:44:06 -0400 Message-ID: Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113fe9f045e485055a2dab4b" X-Trace: blaine.gmane.org 1506527124 29042 195.159.176.226 (27 Sep 2017 15:45:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 27 Sep 2017 15:45:24 +0000 (UTC) To: 28620@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 27 17:45:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxEWN-0006Yu-3i for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Sep 2017 17:45:11 +0200 Original-Received: from localhost ([::1]:55299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxEWT-0001R2-Jf for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Sep 2017 11:45:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxEWI-0001Ol-V1 for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 11:45:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxEWF-0007aV-Ga for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 11:45:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxEWF-0007aP-Dq for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 11:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dxEWF-0001FV-0S for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 11:45:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Sep 2017 15:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28620 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15065270934767 (code B ref -1); Wed, 27 Sep 2017 15:45:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Sep 2017 15:44:53 +0000 Original-Received: from localhost ([127.0.0.1]:35172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxEW4-0001Eo-RW for submit@debbugs.gnu.org; Wed, 27 Sep 2017 11:44:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxEW3-0001EQ-7V for submit@debbugs.gnu.org; Wed, 27 Sep 2017 11:44:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxEVw-0007GL-5G for submit@debbugs.gnu.org; Wed, 27 Sep 2017 11:44:46 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51377) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dxEVw-0007Fx-0c for submit@debbugs.gnu.org; Wed, 27 Sep 2017 11:44:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxEVt-0001Az-Lc for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 11:44:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxEVq-00077b-8O for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 11:44:41 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxEVq-00077P-3U for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 11:44:38 -0400 Original-Received: from mail-qk0-f177.google.com ([209.85.220.177]:48562) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dxEVp-0004OQ-Qg for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 11:44:37 -0400 Original-Received: by mail-qk0-f177.google.com with SMTP id a128so13718886qkc.5 for ; Wed, 27 Sep 2017 08:44:37 -0700 (PDT) X-Gm-Message-State: AHPjjUjrCFLRQBBpujFdJRHn1zRWB/I/rznRKm3joFyLI4Do3HoZHJJl YCKcLCDvUUY5QdWDEGE8fz5lSpcQIAGMqjkX1yQ= X-Google-Smtp-Source: AOwi7QA1zoLoYdmlHExYutYIz3hj5XgGCe8h/qCzynYxo7zTYdJ0ZO9vT2dMU/tTBsa1SuVHffNHm0VeULQWpZg8cO4= X-Received: by 10.55.19.228 with SMTP id 97mr1816371qkt.271.1506527077064; Wed, 27 Sep 2017 08:44:37 -0700 (PDT) Original-Received: by 10.200.28.3 with HTTP; Wed, 27 Sep 2017 08:44:06 -0700 (PDT) X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137500 Archived-At: --001a113fe9f045e485055a2dab4b Content-Type: text/plain; charset="UTF-8" With Emacs 25.3 under MacOS 10.12, a drag with mouse-1 depressed from the text area of frame F1 to the text area of frame F2 improperly generates a drag event whose (posn-window (event-end )) shows F1 rather than F2. Note that for a drag between frames, posn-window should return a frame (according to the Elisp manual but not its own doc string). The bug is that the event itself records the wrong frame (the depress frame rather than the release frame). I have confirmed this with Emacs 25.2 under Windows 7 as well. Bob In GNU Emacs 25.3.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2017-09-12 built on builder10-9.local Windowing system distributor 'Apple', version 10.3.1504 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: recentf-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t desktop-save-mode: t winner-mode: t which-key-mode: t show-paren-mode: t which-function-mode: t persistent-scratch-autosave-mode: t paredit-everywhere-mode: t dynamic-completion-mode: t global-edit-server-edit-mode: t delete-selection-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t auto-compile-mode: t outline-minor-mode: t minibuffer-depth-indicate-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-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 column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t Features: (shadow mail-extr emacsbug tabify man magit-utils crm pulse glasses cus-start cus-load mule-diag ispell filecache two-column iso-transl debug recentf tree-widget helm-x-files helm-for-files helm-bookmark helm-adaptive helm-info bookmark helm-external helm-net helm-files image-dired ffap helm-tags helm-locate tramp tramp-compat tramp-loaddefs trampver eieio-opt speedbar sb-image ezimage dframe helm-buffers helm-grep helm-regexp helm-utils helm-help helm-types thai-util thai-word misearch multi-isearch pcmpl-unix pcmpl-gnu shell dired-aux grep hywconfig network-stream nsm starttls web-beautify org-element org-rmail org-mhe org-irc org-info org-gnus org-docview org-bibtex bibtex org-bbdb org-w3m doc-view arc-mode archive-mode eww mm-url gnus gnus-ems nnheader wid-edit url-queue shr dom texinfo make-mode skewer-html markdown-mode color sh-script smie executable rst conf-mode tern-auto-complete tern jsdock helm-dash cursor-sensor image-mode flycheck rx flymake jedi auto-complete popup jedi-core python-environment epc ctable concurrent deferred pydock pydoc goto-addr autorevert filenotify vc-git diff-mode .emacs desktop frameset window-jump winner which-key supercite regi sort skewer-setup skewer-mode cache-table js2-mode js cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs simple-httpd pp json map python-mode compile thingatpt aggressive-indent paren which-func imenu persistent-scratch js-lookup paredit-everywhere paredit-menu paredit par-align rep-region id-edit wrect rect id-linecol bw-tags apropos file-hdr lib site-key site-func id-keys id-vers chrome-macos emmet-mode dired-x completion ido server edit-server delsel jka-compr auto-compile packed dash hmouse-tag etags xref project rsw-helm helm-easymenu helm edmacro kmacro helm-source eieio-compat helm-multi-match helm-lib wdired async hyperbole hinit hibtypes hib-doc-id hsys-www klink subr-x hib-kbd hib-social hib-debbugs debbugs-gnu debbugs soap-client url-http tls gnutls url-auth url-gw warnings rng-xsd rng-dt rng-util xsd-regexp hsys-org org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func hactypes comint ansi-color hui-mini hui hui-mouse hui-window hargs hui-menu hyrolo-menu hyrolo google-contacts xml url-cache url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap url-util url-parse auth-source cl-seq eieio url-vars google-oauth hmail hui-jmenu noutline outline easy-mmode hmouse-key hmouse-sh hmouse-drv hypb locate hsettings hui-em-but hbut hact hpath hhist hbdata htz cal-julian cal-menu calendar cal-loaddefs hbmap hmoccur derived browse-url hui-select web-mode disp-table sgml-mode hvar set hversion hload-path package-x mail-hist sendmail ring message dired format-spec rfc822 mml mml-sec password-cache epg gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mailabbrev mail-utils gmm-utils mailheader rsw-evernote epic htmlize cl add-log exec-path-from-shell finder-inf eieio-core cl-macs kotl-loaddefs pydoc-info advice info-look info package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode cconv mb-depth edebug easymenu cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev 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 multi-tty make-network-process emacs) Memory information: ((conses 16 1208296 206512) (symbols 48 87755 1) (miscs 40 9963 6750) (strings 32 234897 19520) (string-bytes 1 7230712) (vectors 16 99432) (vector-slots 8 2323157 242912) (floats 8 1648 1850) (intervals 56 53652 6347) (buffers 976 433)) --001a113fe9f045e485055a2dab4b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= With Emacs 25.3 under MacOS= 10.12, a drag with mouse-1 depressed from
the text area of frame F1 = to the text area of frame F2 improperly
generates=C2=A0a drag event whose (posn-window (event= -end <event>)) shows
F1 rather than F2.

Note t= hat for a drag between frames, posn-window should return a frame
(accordi= ng to the Elisp manual but not its own doc string).=C2=A0 The bug is=
that= the event itself records the wrong frame (the depress frame rather<= /div>
than = the release frame).

I have confirmed this with Emacs 25.2 under Wi= ndows 7 as well.

Bob


In GNU Emacs 25.3.1 (x86_64-a= pple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911))=
=C2= =A0of 2017-09-12 built on builder10-9.local
Windowing system distributor = 'Apple', version 10.3.1504
Configured using:
=C2=A0'configu= re --with-ns '--enable-locallisppath=3D/Library/Application
=C2=A0Sup= port/Emacs/${version}/site-lisp:/Library/Application
=C2=A0Support/Emacs/= site-lisp' --with-modules'

Configured features:
NOTIFY A= CL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

Important se= ttings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system:= utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effec= t:
=C2=A0 recentf-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 diff-a= uto-refine-mode: t
=C2=A0 desktop-save-mode: t
=C2=A0 winner-mode: t
= =C2=A0 which-key-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 which-functio= n-mode: t
=C2=A0 persistent-scratch-autosave-mode: t
=C2=A0 paredit-eve= rywhere-mode: t
=C2=A0 dynamic-completion-mode: t
=C2=A0 global-edit-s= erver-edit-mode: t
=C2=A0 delete-selection-mode: t
=C2=A0 auto-compile-= on-load-mode: t
=C2=A0 auto-compile-on-save-mode: t
=C2=A0 auto-compile= -mode: t
=C2=A0 outline-minor-mode: t
=C2=A0 minibuffer-depth-indicate-= mode: t
=C2=A0 tooltip-mode: t
<= font face=3D"monospace, monospace">=C2=A0 global-eldoc-mode: t
=
=C2=A0 eld= oc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
= =C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-f= ont-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
<= font face=3D"monospace, monospace">=C2=A0 auto-encryption-mode: t
=C2=A0 = auto-compression-mode: t
=C2=A0 column-number-mode: t
=C2=A0 line-numbe= r-mode: t
=C2=A0 auto-fill-function: do-auto-fill
=C2=A0 transient-mar= k-mode: t

Features:
(shadow mail-extr emacsbug tabify man magit-= utils crm pulse glasses
cus-start cus-load mule-diag ispell filecache two= -column iso-transl
debug recentf tree-widget helm-x-files helm-for-files = helm-bookmark
helm-adaptive helm-info bookmark helm-external helm-net hel= m-files
image-dired ffap helm-tags helm-locate tramp tramp-compat tramp-l= oaddefs
trampver eieio-opt speedbar sb-image ezimage dframe helm-buffers<= /font>
thai-wo= rd misearch multi-isearch pcmpl-unix pcmpl-gnu shell dired-aux
=
grep hywco= nfig network-stream nsm starttls web-beautify org-element
org-rmail org-m= he org-irc org-info org-gnus org-docview org-bibtex
bibtex org-bbdb org-= w3m doc-view arc-mode archive-mode eww mm-url gnus
gnus-ems nnheader wi= d-edit url-queue shr dom texinfo make-mode
skewer-html markdown-mode colo= r sh-script smie executable rst conf-mode
tern-auto-complete tern jsdock = helm-dash cursor-sensor image-mode
flycheck rx flymake jedi auto-complete= popup jedi-core
python-environment epc ctable concurrent deferred pydock= pydoc goto-addr
autorevert filenotify vc-git diff-mode .emacs desktop fr= ameset
window-jump winner which-key supercite regi sort skewer-setup
sk= ewer-mode cache-table js2-mode js cc-mode cc-fonts cc-guess cc-menus=
cc-c= mds cc-styles cc-align cc-engine cc-vars cc-defs simple-httpd pp
json map= python-mode compile thingatpt aggressive-indent paren
which-func imenu p= ersistent-scratch js-lookup paredit-everywhere
paredit-menu paredit par-a= lign rep-region id-edit wrect rect id-linecol
bw-tags apropos file-hdr li= b site-key site-func id-keys id-vers
chrome-macos emmet-mode dired-x comp= letion ido server edit-server delsel
jka-compr auto-compile packed dash h= mouse-tag etags xref project
rsw-helm helm-easymenu helm edmacro kmacro h= elm-source eieio-compat
helm-multi-match helm-lib wdired async hyperbole = hinit hibtypes
hib-doc-id hsys-www klink subr-x hib-kbd hib-social hib-de= bbugs
debbugs-gnu debbugs soap-client url-http tls gnutls url-auth url-gw=
warnings rng-xsd rng-dt rng-util xsd-regexp hsys-org org org-macro
org= -footnote org-pcomplete pcomplete org-list org-faces org-entities
org-ver= sion ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp
<= div class=3D"gmail_default">org-src ob-= keys ob-comint ob-core ob-eval org-compat org-macs
org-loaddefs find-fu= nc hactypes comint ansi-color hui-mini hui hui-mouse
hui-window hargs hui= -menu hyrolo-menu hyrolo google-contacts xml
url-cache url url-proxy url-= privacy url-expand url-methods url-history
url-cookie url-domsuf mailcap = url-util url-parse auth-source cl-seq
eieio url-vars google-oauth hmail h= ui-jmenu noutline outline easy-mmode
hmouse-key hmouse-sh hmouse-drv hypb= locate hsettings hui-em-but hbut
= hact hpath hhist hbdata htz cal-julian = cal-menu calendar cal-loaddefs
hbmap hmoccur derived browse-url hui-selec= t web-mode disp-table
sgml-mode hvar set hversion hload-path package-x = mail-hist sendmail ring
message dired format-spec rfc822 mml mml-sec pass= word-cache epg
gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231= rfc2047
rfc2045 ietf-drums mm-util help-fns mail-prsvr mailabbrev mail-u= tils
gmm-utils mailheader rsw-evernote epic htmlize cl add-log
exec-pat= h-from-shell finder-inf eieio-core cl-macs kotl-loaddefs
pydoc-info advic= e info-look info package epg-config seq byte-opt gv
bytecomp byte-compil= e cl-extra help-mode cconv mb-depth edebug easymenu
cl-loaddefs pcase cl= -lib time-date mule-util tooltip eldoc electric
uniquify ediff-hook vc-ho= oks lisp-float-type mwheel ns-win ucs-normalize
term/common-win tool-bar = dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode = lisp-mode prog-mode register page
= menu-bar rfn-eshadow timer select scrol= l-bar mouse jit-lock font-lock
syntax facemenu font-core 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 europ= ean ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-c= mpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs butt= on faces
cus-face macroexp files text-properties overlay sha1 md5 base64 = format
env code-pages mule custom widget hashtable-print-readable backquo= te
kqueue cocoa ns multi-tty make-network-process emacs)

Memory = information:
((conses 16 1208296 206512)
=C2=A0(symbols 48 87755 1)
= =C2=A0(miscs 40 9963 6750)
=C2=A0(strings 32 234897 19520)
=C2=A0(strin= g-bytes 1 7230712)
=C2=A0(vectors 16 99432)
=C2=A0(vector-slots 8 23231= 57 242912)
=C2=A0(floats 8 1648 1850)
=C2=A0(intervals 56 53652 6347)
=C2=A0(buffers 976 433))

--001a113fe9f045e485055a2dab4b--