From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17331: 24.4.50; `display' text property with mouse movement - tooltip not updated Date: Thu, 24 Apr 2014 18:04:42 +0300 Message-ID: <83eh0m93at.fsf@gnu.org> References: <0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1398398468 18972 80.91.229.3 (25 Apr 2014 04:01:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Apr 2014 04:01:08 +0000 (UTC) Cc: 17331-done@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 25 06:01:01 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 1WdXJs-00027y-Ql for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Apr 2014 06:01:00 +0200 Original-Received: from localhost ([::1]:55299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WdXJs-0004qB-GD for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Apr 2014 00:01:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WdUiH-00045b-0B for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2014 21:15:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WdLCx-0005WK-EF for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2014 11:05:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WdLCx-0005Vy-Bi for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2014 11:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WdLCw-0002Rh-To for bug-gnu-emacs@gnu.org; Thu, 24 Apr 2014 11:05:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Apr 2014 15:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 17331 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 17331@debbugs.gnu.org, eliz@gnu.org, drew.adams@oracle.com Original-Received: via spool by 17331-done@debbugs.gnu.org id=D17331.13983518929373 (code D ref 17331); Thu, 24 Apr 2014 15:05:02 +0000 Original-Received: (at 17331-done) by debbugs.gnu.org; 24 Apr 2014 15:04:52 +0000 Original-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 Original-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 Original-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) Original-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) In-reply-to: <0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default> X-012-Sender: halo1@inter.net.il 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:88284 Archived-At: > 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).