GNU bug report logs - #17331
24.4.50; `display' text property with mouse movement - tooltip not updated

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Wed, 23 Apr 2014 22:12:02 UTC

Severity: normal

Found in version 24.4.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17331 in the body.
You can then email your comments to 17331 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17331; Package emacs. (Wed, 23 Apr 2014 22:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 23 Apr 2014 22:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.50; `display' text property with mouse movement - tooltip not
 updated
Date: Wed, 23 Apr 2014 15:10:54 -0700 (PDT)
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 <at> dancol.org-20140421180019-po4wdeg7gqvvlh5d
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/snapshot/trunk
 --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
 LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
 -Ic:/Devel/emacs/include''




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 24 Apr 2014 15:05:02 GMT) Full text and rfc822 format available.

Notification sent to Drew Adams <drew.adams <at> oracle.com>:
bug acknowledged by developer. (Thu, 24 Apr 2014 15:05:03 GMT) Full text and rfc822 format available.

Message #10 received at 17331-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 17331-done <at> debbugs.gnu.org
Subject: Re: bug#17331: 24.4.50;
 `display' text property with mouse movement - tooltip not updated
Date: Thu, 24 Apr 2014 18:04:42 +0300
> Date: Wed, 23 Apr 2014 15:10:54 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> 
> 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).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17331; Package emacs. (Thu, 24 Apr 2014 15:08:02 GMT) Full text and rfc822 format available.

Message #13 received at 17331-done <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 17331-done <at> debbugs.gnu.org
Subject: RE: bug#17331: 24.4.50; `display' text property with mouse movement -
 tooltip not updated
Date: Thu, 24 Apr 2014 08:07:49 -0700 (PDT)
That was quick; thx.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 23 May 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 348 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.