zk-phi / symon

Tiny graphical system monitor
289 stars 26 forks source link

Re-display symon only if there is no pending user input required #23

Closed kaushalmodi closed 9 years ago

kaushalmodi commented 9 years ago

I face this issue that symon aggressively re-displays even when emacs is wating for some input from a user in the echo area.

Example: When I try to quit emacs, I get this question in the echo area:

This emacs session has clients; exit anyways? (y or n)

But if I wait for a second or two, symon displays come back and overwrites that question even before I respond with y or n.

Do you consider this as a bug? If not, can you provide an option so that symon display is held off as long as some user input is pending in the echo area?

zk-phi commented 9 years ago

Thanks for reporting. symon is not redisplayed while a minibuffer is active, but y-or-n-p actually does not use minibuffers to read user inputs so symon was redisplayed. Now symon checks whether the cursor is in the echo area.