Article View: gnu.emacs.bug
Article #9893718.56 Beta time.el/load bug with fix
From: David Anderson
Date: Tue, 08 Jan 1991 19:25
Date: Tue, 08 Jan 1991 19:25
35 lines
1912 bytes
1912 bytes
In GNU Emacs 18.55.95 ("18.56 beta") the display-time functions in
library "time.el" depend on the "load-average" being implemented on
your machine. There is no way to turn off the request to
load-average, which errors if it is not implemented on your favorite
machine. Here is a diff that makes displaying the load average
optional, so you can still get the time of day and such:
26,27d25
< (defvar display-load-ave nil
< "*Non-nil means to display the load average with time in the mode line.")
66,68c64
< (load (if display-load-ave
< (format "%03d" (car (load-average)))
< nil))
---
> (load (format "%03d" (car (load-average))))
83,85c79
< (if load
< (concat (substring load 0 -2) "." (substring load -2))
< "")
---
> (substring load 0 -2) "." (substring load -2)
The default for display-load-ave might want to be t; that's up to you.
A better way to fix this would be to make load-average more polite if
not called interactively, or passed the right flag.
Or someone could implement load-average for the RS6000, but that's not
a general solution.
By the way, I think this is a nicer, cleaner implementation of the
display-time package.
dca@verity.com
Technical Details
Message-ID:
<9101081925.AA11651@verity.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!timbuk!cs.umn.edu!uc!tut.cis.ohio-state.edu!VERITY.COM!dcaShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,e222b1b2812f01dc,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-01-08 11:25:57 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!timbuk!cs.umn.edu!uc!tut.cis.ohio-state.edu!VERITY.COM!dca From: dca@VERITY.COM (David Anderson) Newsgroups: gnu.emacs.bug Subject: 18.56 Beta time.el/load bug with fix Message-ID: <9101081925.AA11651@verity.com> Date: 8 Jan 91 19:25:57 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 35 Approved: bug-gnu-emacs@prep.ai.mit.edu