changeset 22936:7ba8e024c38f

(midnight-timer-function): No need to test midnight-mode.
author Richard M. Stallman <rms@gnu.org>
date Fri, 07 Aug 1998 08:53:47 +0000
parents 9c6f6af7919f
children 584b28b8de70
files lisp/midnight.el
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/midnight.el	Fri Aug 07 07:57:53 1998 +0000
+++ b/lisp/midnight.el	Fri Aug 07 08:53:47 1998 +0000
@@ -219,8 +219,7 @@
 
 (defun midnight-timer-function ()
   "This is the function run by the `midnight-mode' timer once each day."
-  (when midnight-mode
-    (run-hooks 'midnight-hook)))
+  (run-hooks 'midnight-hook))
 
 (defcustom midnight-delay 3600
   "*The number of seconds after the midnight when the `midnight-timer' is run.