all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: 9543@debbugs.gnu.org
Cc: Chong Yidong <cyd@stupidchicken.com>
Subject: bug#9543: 23.3.50; help-echo property
Date: Sun, 18 Sep 2011 21:59:39 +0800	[thread overview]
Message-ID: <m1ehzej6ic.fsf@gmail.com> (raw)

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





             reply	other threads:[~2011-09-18 13:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-18 13:59 Leo [this message]
2011-09-19 12:57 ` bug#9543: 23.3.50; help-echo property Stefan Monnier
2011-09-19 13:58   ` Leo

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=m1ehzej6ic.fsf@gmail.com \
    --to=sdl.web@gmail.com \
    --cc=9543@debbugs.gnu.org \
    --cc=cyd@stupidchicken.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.