GNU bug report logs - #9543
23.3.50; help-echo property

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Sun, 18 Sep 2011 14:06:01 UTC

Severity: normal

Found in version 23.3.50

Done: Leo <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Leo <sdl.web <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#9543: closed (23.3.50; help-echo property)
Date: Mon, 19 Sep 2011 14:05:05 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 19 Sep 2011 21:58:46 +0800
with message-id <m1mxe0y6p5.fsf <at> gmail.com>
and subject line Re: bug#9543: 23.3.50; help-echo property
has caused the debbugs.gnu.org bug report #9543,
regarding 23.3.50; help-echo property
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
9543: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9543
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.3.50; help-echo property
Date: Sun, 18 Sep 2011 21:59:39 +0800
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


[Message part 3 (message/rfc822, inline)]
From: Leo <sdl.web <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Chong Yidong <cyd <at> stupidchicken.com>, 9543-done <at> debbugs.gnu.org
Subject: Re: bug#9543: 23.3.50; help-echo property
Date: Mon, 19 Sep 2011 21:58:46 +0800
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


This bug report was last modified 13 years and 307 days ago.

Previous Next


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