🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #8110

Re: Gnu Emacs Mail Flag

#8110
From: John Robinson
Date: Wed, 14 Dec 1988 14:43
33 lines
1884 bytes
In article <12096@hall.cray.com>, sandman@hall (Dominick M. Galang) writes:
>
>	I remember a while back that there was a fix to get gnu emacs
>to realize when mail had been read.  I use rmail from emacs and after
>I'm done, my status line still tells me that I've got mail waiting for
>me.

I use mh-e, but the principle should apply.  Assuming there is a hook
that gets run after rmail has read new mail (is it the "g" key?  it's
been a long time :-), you ought to be able to hang this lambda on it
and get the effect you want.  This is from my .emacs:

(setq mh-inc-folder-hook '(lambda ()
  (if (and (boundp 'display-time-process) display-time-process)
      (start-process "update-time-display" nil
		     "/bin/sh"
		     "-c" (concat "kill -14 "
				  (int-to-string
				   (process-id display-time-process)))))))

Caveat: once in a long while, your loadst process (the thing that
provides time, loadav and "[Mail]" to the modelines) may die; simply
re-run (display-time) to resume it.

Given that you have lotsa spare cycles (running on a Cray, right? :-)
you can also set display-time's update interval parameter to something
other than its default of 60 seconds.  How about 1?  Here's its defvar:

(defvar display-time-interval 60
  "*Seconds between updates of time in the mode line.")
--
/jr
jr@bbn.com or bbn!jr
Technical Details
Message-ID: <33512@bbn.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!uflorida!gatech!bbn!jr@bbn.com
References: <12096@hall.cray.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!uflorida!gatech!bbn!jr@bbn.com
From: jr@bbn.com (John Robinson)
Newsgroups: comp.emacs
Subject: Re: Gnu Emacs Mail Flag
Keywords: mail status line 18.52
Message-ID: <33512@bbn.COM>
Date: 14 Dec 88 14:43:22 GMT
References: <12096@hall.cray.com>
Sender: news@bbn.COM
Reply-To: jr@bbn.com (John Robinson)
Distribution: na
Organization: BBN Systems and Technologies Corporation, Cambridge MA
Lines: 32
In-reply-to: sandman@hall.cray.com (Dominick M. Galang)