>>>>> On Mon, 18 Sep 2006 11:46:05 +0100, "Marshall, Simon" <[EMAIL PROTECTED]> >>>>> said:
>> If the purpose is to know if some menu is *currently* active, then the >> function will DTRT because Lisp evaluation never happens during menu >> selection on Mac. > Does that apply to popups too? Yes. > For example, what do you see with: > (setq foo 0) > (defun foo () > (message "%d" (setq foo (1+ foo)))) > (setq bar (run-with-timer 1 1 'foo)) > ;(cancel-timer bar) > and File > Open Directory... Increment of the counter is suspended during the file dialog/menu operation. And after the operation, the timer fires multiple times continuously until the counter catches up the value that it would be if no file dialog/menu were activated. YAMAMOTO Mitsuharu [EMAIL PROTECTED] _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug