VM

"No new mail" notification

Bug #1088151 reported by Uday Reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Fix Committed
Low
Uday Reddy

Bug Description

Jay Borkenhagen reports (viewmail-info, 2012-12-08)

Many years ago, I had suggested to Kyle Jones that if vm-get-new-mail
had retrieved nothing, that the "No new mail for ..." message in the
minibuffer should go away after a few seconds, so one would not be
misled by seeing that message still present when returning to vm
possibly several hours later. Kyle agreed, and built that logic using
a call to function "(sit-for 4)".

This sit-for behavior was not working for me in my new vm-8.2.0b
environment, so I started digging. I found that vm-get-new-mail now
uses a special function vm-sit-for, which keys on variable
display-hourglass.

I changed display-hourglass to nil, and I now I do see the "No new
mail ..." message disappear from the minibuffer after 4 seconds. If
that is what I have to do to get the desired behavior I'm OK with
that, but I think this all may not be working the way Uday had
intended so I decided to mention it here.

Tags: 8.2 ui

Related branches

Revision history for this message
Uday Reddy (reddyuday) wrote :

Yes, I remember the issues now. While sit-for is doing its sitting, the
hourglass will keep showing that Emacs is busy. This was confusing to users
because they tend to wait for the hourglass to go off before doing their
next operation.

So, yes, if you want the 4 second disappearance, you need to turn off the
hourglass.

Revision history for this message
Uday Reddy (reddyuday) wrote :

> Let me ask: In "emacs -nw", should display-hourglass ever be set to t?
> Seems like maybe emacs should do a better job of setting this
> variable. Or should vm check whether a window system is being used,
> and if not then don't even bother checking display-hourglass?

It would make sense for Emacs to set it to nil in a text-mode terminal. But
it probably didn't occur to them. I will add a check in `vm-sit-for'.

Uday Reddy (reddyuday)
Changed in vm:
status: Triaged → Fix Committed
Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.2.2a → 8.2.1a
Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.2.1a → 8.2.90a
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.