From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#17331: 24.4.50; `display' text property with mouse movement - tooltip not updated Date: Wed, 23 Apr 2014 15:10:54 -0700 (PDT) Message-ID: <0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1398291160 31880 80.91.229.3 (23 Apr 2014 22:12:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 22:12:40 +0000 (UTC) To: 17331@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 00:12:32 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wd5P0-0003Ow-Te for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Apr 2014 00:12:27 +0200 Original-Received: from localhost ([::1]:34877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd5Oz-0003ow-U4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 18:12:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd5On-0003lu-CB for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 18:12:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wd5Oc-0001RY-Sm for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 18:12:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd5Oc-0001RT-PU for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 18:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wd5Oc-0003iW-AI for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 18:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Apr 2014 22:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17331 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.139829109014243 (code B ref -1); Wed, 23 Apr 2014 22:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Apr 2014 22:11:30 +0000 Original-Received: from localhost ([127.0.0.1]:56557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wd5O5-0003hb-9O for submit@debbugs.gnu.org; Wed, 23 Apr 2014 18:11:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38610) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wd5O3-0003hR-0u for submit@debbugs.gnu.org; Wed, 23 Apr 2014 18:11:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wd5Ns-0000sk-DV for submit@debbugs.gnu.org; Wed, 23 Apr 2014 18:11:26 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd5Ns-0000sW-Ad for submit@debbugs.gnu.org; Wed, 23 Apr 2014 18:11:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd5Nj-000273-H4 for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 18:11:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wd5Na-0000ky-QK for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 18:11:07 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:43999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd5Na-0000kq-L1 for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 18:10:58 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s3NMAucj012236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 23 Apr 2014 22:10:57 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s3NMAtpL015621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 23 Apr 2014 22:10:56 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s3NMAsVt015603 for ; Wed, 23 Apr 2014 22:10:54 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88265 Archived-At: Put these lines in a buffer. ;; AAAAAAAAAAAAAAAAAAAAA ;; BBBBBBBBBBBBBBBBBBBBB Use these sexps to add a `help-echo' property, with point on the first line for the first sexp and point on the second line for the second sexp. (add-text-properties (line-beginning-position) (line-end-position) '(mouse-face highlight help-echo "1111111111111111")) (add-text-properties (line-beginning-position) (line-end-position) '(mouse-face highlight help-echo "2222222222222222")) Now move the mouse over the first line, then the second line, without moving it outside the line text (i.e., keep it within the mouse-face area). When you move the mouse between the lines, the tooltip text changes, as it should. Now do the same thing, but using these sexps: (add-text-properties (line-beginning-position) (line-end-position) '(mouse-face highlight help-echo (propertize " " 'display "1111111111111111"))) (add-text-properties (line-beginning-position) (line-end-position) '(mouse-face highlight help-echo (propertize " " 'display "2222222222222222"))) The tooltip does not change as it should. To get it to change, you need to move the mouse outside of the current line's propertized text before moving it over the other line's text. This is a bug, IMO, and should be fixed. Tooltip info can be important. Among other use cases, consider a tooltip that displays a thumbnail image upon mouseover of an image file in Dired. If you will not consider this a bug, please consider it an enhancement request. Add a `help-echo' property to some text. Add a different `help-echo' property to some text that is contiguous with it, or is directly above or below it (different line), so you can move the mouse from one to the other without moving it over text that does not have property `help-echo'. In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-04-21 on ODIEONE Bzr revision: 117005 dancol@dancol.org-20140421180019-po4wdeg7gqvvlh5d Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/snapshot/trunk --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1 -Ic:/Devel/emacs/include''