* bug#9543: 23.3.50; help-echo property
@ 2011-09-18 13:59 Leo
2011-09-19 12:57 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Leo @ 2011-09-18 13:59 UTC (permalink / raw)
To: 9543; +Cc: Chong Yidong
1. Emacs -Q
2. eval
(put 'x 'risky-local-variable t)
(setq x '(:eval (propertize "x" 'help-echo (message "Wow"))))
(push '("" x) global-mode-string)
3. Move point around and check how many Wow's are printed in *Messages*
buffer
The form (message "Wow") is eval'd each time mode-line is updated even
though one didn't move mouse over the 'x' string on the mode-line.
If the help-echo property is a function, it is only called when one
moves the mouse over 'x'.
Why this difference?
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#9543: 23.3.50; help-echo property
2011-09-18 13:59 bug#9543: 23.3.50; help-echo property Leo
@ 2011-09-19 12:57 ` Stefan Monnier
2011-09-19 13:58 ` Leo
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2011-09-19 12:57 UTC (permalink / raw)
To: Leo; +Cc: Chong Yidong, 9543
> (setq x '(:eval (propertize "x" 'help-echo (message "Wow"))))
Hint: try to replace `help-echo' with `toto' and see what happens.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#9543: 23.3.50; help-echo property
2011-09-19 12:57 ` Stefan Monnier
@ 2011-09-19 13:58 ` Leo
0 siblings, 0 replies; 3+ messages in thread
From: Leo @ 2011-09-19 13:58 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Chong Yidong, 9543-done
On 2011-09-19 20:57 +0800, Stefan Monnier wrote:
>> (setq x '(:eval (propertize "x" 'help-echo (message "Wow"))))
>
> Hint: try to replace `help-echo' with `toto' and see what happens.
>
>
> Stefan
Sorry for the noise. I missed a ' there.
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-19 13:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-18 13:59 bug#9543: 23.3.50; help-echo property Leo
2011-09-19 12:57 ` Stefan Monnier
2011-09-19 13:58 ` Leo
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).