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: [drew.adams@oracle.com: RE: moving overlay loses its priority?] Date: Sun, 20 Aug 2006 12:40:59 -0400 Message-ID: <87ac5zicmc.fsf@furball.mit.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156100574 29457 80.91.229.2 (20 Aug 2006 19:02:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Aug 2006 19:02:54 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 20 21:02:52 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GEsZK-0004zB-MS for ged-emacs-devel@m.gmane.org; Sun, 20 Aug 2006 21:02:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GEsZK-0000xT-9t for ged-emacs-devel@m.gmane.org; Sun, 20 Aug 2006 15:02:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GEqMO-0003LH-0k for emacs-devel@gnu.org; Sun, 20 Aug 2006 12:41:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GEqMM-0003Jy-QY for emacs-devel@gnu.org; Sun, 20 Aug 2006 12:41:15 -0400 Original-Received: from [18.72.1.2] (helo=south-station-annex.mit.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GEqTY-0003vd-Re; Sun, 20 Aug 2006 12:48:40 -0400 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id k7KGfAWT023111; Sun, 20 Aug 2006 12:41:10 -0400 (EDT) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id k7KGf6Qs004400; Sun, 20 Aug 2006 12:41:10 -0400 (EDT) Original-Received: from furball.mit.edu (SYDNEYPACIFIC-THIRTEEN.MIT.EDU [18.95.5.13]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id k7KGewKj027725; Sun, 20 Aug 2006 12:40:59 -0400 (EDT) Original-Received: from cyd by furball.mit.edu with local (Exim 3.36 #1 (Debian)) id 1GEqM7-00017B-00; Sun, 20 Aug 2006 12:40:59 -0400 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 14 Aug 2006 15:21:03 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Spam-Score: 1.217 X-Scanned-By: MIMEDefang 2.42 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:58556 Archived-At: Richard Stallman writes: > Would someone please DTRT and ack? The original bug report is to complicated to work with, but the basic problem (as noted by Kim Storm) is that inside a `track-mouse' form, `read-event' is not returning mouse motion events if there is a `help-echo' text property present (NOT `mouse-face' as mistakenly stated in a previous thread). I suspect the problem lies in note_mouse_movement in xterm.c, and that it is related to the "tooltip frame" problems in that code that we dealt with about a year ago. Here is a simple way to reproduce the problem. ;; F2 to create the test buffer, then F3 to report mouse movements (global-set-key [f2] 'test-mouse-track) (global-set-key [f3] 'report-mouse-movements) (defun test-mouse-track () (interactive) (with-output-to-temp-buffer "Foo" (set-buffer "Foo") (erase-buffer) (insert (propertize "Mouse tracking is stuck here" 'help-echo "mouse-2: select this buffer")))) (defun report-mouse-movements () (interactive) (let (done read) (track-mouse (while (not done) (setq read (read-event)) (if (eq (car-safe read) 'mouse-1) (setq done t) (message "%s" (prin1-to-string read)))))))