From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 17331-done@debbugs.gnu.org
Subject: bug#17331: 24.4.50; `display' text property with mouse movement - tooltip not updated
Date: Thu, 24 Apr 2014 18:04:42 +0300 [thread overview]
Message-ID: <83eh0m93at.fsf@gnu.org> (raw)
In-Reply-To: <0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default>
> Date: Wed, 23 Apr 2014 15:10:54 -0700 (PDT)
> From: Drew Adams <drew.adams@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).
next prev parent reply other threads:[~2014-04-24 15:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-23 22:10 bug#17331: 24.4.50; `display' text property with mouse movement - tooltip not updated Drew Adams
2014-04-24 15:04 ` Eli Zaretskii [this message]
[not found] <<0a1111d1-d6a5-4df8-aaaf-bb37b0a0a823@default>
[not found] ` <<83eh0m93at.fsf@gnu.org>
2014-04-24 15:07 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83eh0m93at.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=17331-done@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.