* 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
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 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.