Article View: gnu.emacs.bug
Article #804rmail/display-time suggestion
From: Francesco Potorti`
Date: Fri, 02 Oct 1992 13:57
Date: Fri, 02 Oct 1992 13:57
36 lines
2110 bytes
2110 bytes
If you read your mail with rmail (M-x rmail or by using the "g"
command), it should signal display-time that you no longer have
pending mail. This isn't totally reliable (you could read your
mail some other way), and it's not terribly important, but it would
be a nice improvement if someone were energetic enough to make it.
I think this simple patch would do the job without any side-effects.
Anyway, I am not very familiar with processes under emacs, so some
guru should verify it makes no harm.
--- /local/lib/emacs/lisp/local/rmail.el Wed Apr 15 16:29:56 1992
+++ /users/pot/emacs/rmail.el Fri Oct 2 12:39:59 1992
@@ -459,7 +459,9 @@
(message "%d new message%s read"
new-messages (if (= 1 new-messages) "" "s"))))
;; Don't leave the buffer screwed up if we get a disk-full error.
- (rmail-show-message)))
+ (rmail-show-message)
+ (if (eq (process-status "display-time") 'run)
+ (display-time-filter display-time-process ""))))
(defun rmail-insert-inbox-text (files renamep)
(let (file tofile delete-files movemail popmail)
I had started by calling the display-time-filter only if there were
new messages, but it caused an anoying blinking on the screen. That
was, I guess, because the filter caused a redisplay before the call to
rmail-show-messages. This way the redisplay is done after
rmail-show-message, with a resulting waste in cpu power, but no
visible effect.
Francesco Potorti` | pot@cnuce.cnr.IT (Internet)
| 39369::pot (DECnet)
| (39)(50)593203 (voice)
Technical Details
Message-ID:
<m0malcz-0001DRC@fly.cnuce.cnr.IT>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!fly.cnuce.cnr.it!potReferences:
<9209282238.AA16584@napa.TELEBIT.COM>Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!fly.cnuce.cnr.it!pot From: pot@fly.cnuce.cnr.it (Francesco Potorti`) Subject: rmail/display-time suggestion Message-ID: <m0malcz-0001DRC@fly.cnuce.cnr.IT> Sender: gnulists@ai.mit.edu Reply-To: pot@cnuce.cnr.it Organization: GNUs Not Usenet References: <9209282238.AA16584@napa.TELEBIT.COM> Distribution: gnu Date: Fri, 2 Oct 1992 13:57:00 GMT Approved: bug-gnu-emacs@prep.ai.mit.edu Lines: 37