From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: mouse position bug and half a fix Date: Sun, 25 Jan 2009 12:02:17 -0500 Message-ID: <87d4ebz5d2.fsf@cyd.mit.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232903307 19911 80.91.229.12 (25 Jan 2009 17:08:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2009 17:08:27 +0000 (UTC) Cc: 2044-done@emacsbugs.donarmstrong.com, Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 25 18:09:36 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LR8TR-0003iT-Sd for ged-emacs-devel@m.gmane.org; Sun, 25 Jan 2009 18:09:18 +0100 Original-Received: from localhost ([127.0.0.1]:50483 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LR8S8-0003BC-Vw for ged-emacs-devel@m.gmane.org; Sun, 25 Jan 2009 12:07:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LR8Mr-0007GV-F2 for emacs-devel@gnu.org; Sun, 25 Jan 2009 12:01:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LR8Mo-0007Dp-C3 for emacs-devel@gnu.org; Sun, 25 Jan 2009 12:01:51 -0500 Original-Received: from [199.232.76.173] (port=40109 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LR8Mo-0007Dg-2s for emacs-devel@gnu.org; Sun, 25 Jan 2009 12:01:50 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:37835) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LR8Mn-0008Hp-NR for emacs-devel@gnu.org; Sun, 25 Jan 2009 12:01:49 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id D3EEE57E1D4; Sun, 25 Jan 2009 12:02:17 -0500 (EST) In-Reply-To: (David Reitter's message of "Sat, 24 Jan 2009 22:15:13 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108223 Archived-At: David Reitter writes: > The problem is that (posn-point (event-start start-event)) in mouse- > drag-region does not give us the correct location; in fact, the xy > coordinates in the event are wrong. > > My guess is that whatever algorithm determines the character position > under the mouse cursor forgets to switch to the appropriate window > buffer before looking up the faces when iterating over the window > contents. I've checked in a fix. Thanks.