From unknown Fri Jun 20 20:00:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17331: 24.4.50; `display' text property with mouse movement - tooltip not updated 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: To: 17331@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139829109014243 (code B ref -1); Wed, 23 Apr 2014 22:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Apr 2014 22:11:30 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 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 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 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 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 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 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 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 MIME-Version: 1.0 Message-ID: <0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default> Date: Wed, 23 Apr 2014 15:10:54 -0700 (PDT) From: Drew Adams X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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'' From unknown Fri Jun 20 20:00:57 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Drew Adams Subject: bug#17331: closed (Re: bug#17331: 24.4.50; `display' text property with mouse movement - tooltip not updated) Message-ID: References: <83eh0m93at.fsf@gnu.org> <0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default> X-Gnu-PR-Message: they-closed 17331 X-Gnu-PR-Package: emacs Reply-To: 17331@debbugs.gnu.org Date: Thu, 24 Apr 2014 15:05:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1398351903-9398-1" This is a multi-part message in MIME format... ------------=_1398351903-9398-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17331: 24.4.50; `display' text property with mouse movement - tooltip not = updated which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17331@debbugs.gnu.org. --=20 17331: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17331 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1398351903-9398-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17331-done) by debbugs.gnu.org; 24 Apr 2014 15:04:52 +0000 Received: from localhost ([127.0.0.1]:57424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WdLCm-0002R6-6c for submit@debbugs.gnu.org; Thu, 24 Apr 2014 11:04:52 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:56358) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WdLCi-0002Qt-Kz for 17331-done@debbugs.gnu.org; Thu, 24 Apr 2014 11:04:50 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N4J00800J3GEX00@a-mtaout20.012.net.il> for 17331-done@debbugs.gnu.org; Thu, 24 Apr 2014 18:04:46 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N4J008XQJ7V2640@a-mtaout20.012.net.il>; Thu, 24 Apr 2014 18:04:44 +0300 (IDT) Date: Thu, 24 Apr 2014 18:04:42 +0300 From: Eli Zaretskii Subject: Re: bug#17331: 24.4.50; `display' text property with mouse movement - tooltip not updated In-reply-to: <0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default> X-012-Sender: halo1@inter.net.il To: Drew Adams Message-id: <83eh0m93at.fsf@gnu.org> References: <0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17331-done Cc: 17331-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 23 Apr 2014 15:10:54 -0700 (PDT) > From: Drew Adams > > 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. Fixed for Emacs 24.4 (emacs-24 branch revision 117017). ------------=_1398351903-9398-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Apr 2014 22:11:30 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 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 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 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 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 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 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 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 MIME-Version: 1.0 Message-ID: <0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default> Date: Wed, 23 Apr 2014 15:10:54 -0700 (PDT) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 24.4.50; `display' text property with mouse movement - tooltip not updated X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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'' ------------=_1398351903-9398-1-- From unknown Fri Jun 20 20:00:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17331: 24.4.50; `display' text property with mouse movement - tooltip not updated Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Apr 2014 15:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17331 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 17331-done@debbugs.gnu.org Received: via spool by 17331-done@debbugs.gnu.org id=D17331.13983520749756 (code D ref 17331); Thu, 24 Apr 2014 15:08:02 +0000 Received: (at 17331-done) by debbugs.gnu.org; 24 Apr 2014 15:07:54 +0000 Received: from localhost ([127.0.0.1]:57431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WdLFh-0002XH-RG for submit@debbugs.gnu.org; Thu, 24 Apr 2014 11:07:54 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:43464) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WdLFf-0002X9-Lg for 17331-done@debbugs.gnu.org; Thu, 24 Apr 2014 11:07:52 -0400 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 s3OF7ohq000418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Apr 2014 15:07:50 GMT 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 s3OF7nvg016208 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Apr 2014 15:07:50 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s3OF7ncM016200; Thu, 24 Apr 2014 15:07:49 GMT MIME-Version: 1.0 Message-ID: <12ff8c85-9f70-44ba-b35f-83123a96f69a@default> Date: Thu, 24 Apr 2014 08:07:49 -0700 (PDT) From: Drew Adams References: <<0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default>> <<83eh0m93at.fsf@gnu.org>> In-Reply-To: <<83eh0m93at.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Spam-Score: -3.0 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) That was quick; thx.