GNU bug report logs - #4892
compute_motion, mouse_position

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: David Reitter <david.reitter@HIDDEN>; dated Mon, 9 Nov 2009 17:20:21 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 4892@HIDDEN:


Received: (at 4892) by emacsbugs.donarmstrong.com; 9 Nov 2009 19:46:22 +0000
From monnier@HIDDEN Mon Nov  9 11:46:21 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=-4.0 required=4.0 tests=AWL,HAS_BUG_NUMBER
	autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA9JkJ2J021486
	for <4892@HIDDEN>; Mon, 9 Nov 2009 11:46:21 -0800
Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177])
	by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id nA9JkHWM007921;
	Mon, 9 Nov 2009 14:46:17 -0500
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id 95E533A1DA; Mon,  9 Nov 2009 14:46:17 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: David Reitter <david.reitter@HIDDEN>
Cc: 4892 <at> debbugs.gnu.org
Subject: Re: bug#4892: compute_motion, mouse_position
Message-ID: <jwvskcn1o40.fsf-monnier+emacsbugreports@HIDDEN>
References: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@HIDDEN>
Date: Mon, 09 Nov 2009 14:46:17 -0500
In-Reply-To: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@HIDDEN> (David Reitter's
	message of "Mon, 9 Nov 2009 12:10:17 -0500")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV3402=0

> I've run into problems with mouse-position and compute-motion while
> debugging the broken drag&drop mechanism for faces in the NS port.
> These problems are probably not specific to NS.

Both sound like generic bugs, indeed.

Until they get fixed, I recommend you try and use posn-at-point and
posn-at-x-y rather than compute-motion, whenever possible.
For mouse-position, try to use the position info included in input
(mouse) events instead.


        Stefan



Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#4892; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 9 Nov 2009 17:10:29 +0000
From david.reitter@HIDDEN Mon Nov  9 09:10:28 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=-0.2 required=4.0 tests=AWL,FOURLA,IMPRONONCABLE_2
	autolearn=no version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA9HARup006324
	for <submit@HIDDEN>; Mon, 9 Nov 2009 09:10:28 -0800
Received: from mail.gnu.org ([199.232.76.166]:49175 helo=mx10.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <david.reitter@HIDDEN>)
	id 1N7Xl4-0003Do-IL
	for emacs-pretest-bug@HIDDEN; Mon, 09 Nov 2009 12:10:26 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <david.reitter@HIDDEN>)
	id 1N7Xkz-0002Uj-Se
	for emacs-pretest-bug@HIDDEN; Mon, 09 Nov 2009 12:10:25 -0500
Received: from qw-out-1920.google.com ([74.125.92.144]:62196)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <david.reitter@HIDDEN>)
	id 1N7Xkz-0002UV-E7
	for emacs-pretest-bug@HIDDEN; Mon, 09 Nov 2009 12:10:21 -0500
Received: by qw-out-1920.google.com with SMTP id 5so637591qwc.24
        for <emacs-pretest-bug@HIDDEN>; Mon, 09 Nov 2009 09:10:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:from:content-type
         :content-transfer-encoding:subject:date:message-id:to:mime-version
         :x-mailer;
        bh=MAJ/vyTbchIw7RzUFnE5zcPOJQOd3dfJWtF+YGbbtoM=;
        b=DWv2COeGZI/TcDndpSjTrQqrmIL/1otgCmAgKE1z74ZIOGewBEYMPgQvF8XGnNHCqe
         N3rOROQDWzzVs9yaDKyPdAFzA3QM/kytKz5EaDEzQMLqA0eSYCuuNpxKyP3JMDIV9VnK
         0fjd026C3dArEKhdrHsGRUWzTbUTGjqtBNMrI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=from:content-type:content-transfer-encoding:subject:date:message-id
         :to:mime-version:x-mailer;
        b=k7QWKMC51MtzxHuCd1/AswWndESA46prF5Dd/G+2l5kh1ThugrOiXujrAO5GRLkP79
         /+M7sxh42Pqr/iKWD/byaV/rW7ZgeATvGhoFghebuw7wxtIqP1X95h2l6KlxVglISsUU
         o8Rj4SB3MZDzXS3AEN3J6yMAu2KMhmdHkbSKs=
Received: by 10.224.29.136 with SMTP id q8mr4242492qac.51.1257786620874;
        Mon, 09 Nov 2009 09:10:20 -0800 (PST)
Received: from scarlett.psy.cmu.edu (SCARLETT.PSY.CMU.EDU [128.2.249.106])
        by mx.google.com with ESMTPS id 23sm592242qyk.7.2009.11.09.09.10.19
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Mon, 09 Nov 2009 09:10:20 -0800 (PST)
From: David Reitter <david.reitter@HIDDEN>
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Subject: compute_motion, mouse_position
Date: Mon, 9 Nov 2009 12:10:17 -0500
Message-Id: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@HIDDEN>
To: emacs-pretest-bug@HIDDEN
Mime-Version: 1.0 (Apple Message framework v1076)
X-Mailer: Apple Mail (2.1076)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)

I've run into problems with mouse-position and compute-motion while  
debugging the broken drag&drop mechanism for faces in the NS port.
These problems are probably not specific to NS.

1. (mouse-position) does not return the selected frame when several  
frames overlap (partially).  To reproduce, I arrange the frames on the  
screen, then select the lower one by clicking with the mouse, then the  
one that's supposed to go on top.  With the mouse cursor still over  
the intersecting section (on top of the upper frame), I do M-: (mouse- 
position).  This will then return the wrong frame.  Reproducible with  
Emacs -Q (NS port with NS frames)

2. (compute-motion) does not correspond to what's shown on the screen  
when word-wrap is turned on.

3. (mouse-position) is incorrect when face-remapping-alist is used,  
enlarging the default face, for example.


I hope these are sufficiently specific to understand and identify the  
code, if not reproduce.  Let me know if not, and I can elaborate.




In GNU Emacs 23.1.50.1 (i386-apple-darwin10.0.0, NS apple- 
appkit-1038.11)
  of 2009-10-08 on scarlett.local
Windowing system distributor `Apple', version 10.3.1038
configured using `configure  '--with-ns' '--without-x' 'CC=gcc -arch  
i386''

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: nil
   value of $XMODIFIERS: nil
   locale-coding-system: nil
   default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
   which-function-mode: t
   tooltip-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   global-auto-composition-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
<help-echo> C-x 5 2 <help-echo> <switch-frame> <help-echo>
<help-echo> <escape> : ( m o u s e - p o s i t i o
n ) <return> <help-echo> <down-mouse-1> <help-echo>
<mouse-1> <help-echo> <down-mouse-1> <mouse-1> <help-echo>
<down-mouse-1> <mouse-1> <help-echo> <escape> : <up>
<return> <help-echo> <help-echo> <switch-frame> <help-echo>
<help-echo> <help-echo> <escape> : <up> <return> <help-echo>
<down-mouse-1> <help-echo> <mouse-1> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> <down-mouse-1> <mouse-1> <escape>
: <up> <return> <help-echo> <down-mouse-1> <mouse-1>
s-n C-x k <return> s-v C-x C-e <switch-frame> C-x C-f
<backspace> <backspace> t e s t <return> <help-echo>
C-y <down-mouse-1> <mouse-1> <escape> x n s - s h o
w - c o l o <tab> <return> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> c o l o <tab> <return> <ns-drag-color>
<ns-drag-color> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-1> <down-mouse-1> <mouse-1> <escape> x e n l
a r <tab> <tab> C-g <escape> x z o o m <tab> <tab>
C-g <escape> x g r o w <tab> <tab> C-g <menu-bar> <help-menu>
<send-emacs-bug-report>

Recent messages:
Mark set

#<frame /Users/dr/test 0x7d5900>

Auto-saving...

#<frame /Users/dr/test 0x7d5900>

Making completion list...
Quit [2 times]
Quit

Load-path shadows:
None found.




Acknowledgement sent to David Reitter <david.reitter@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#4892; 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: Fri, 31 Oct 2014 17:00:04 UTC

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