]> code.delx.au - gnu-emacs/commitdiff
(midnight-timer-function): No need to test midnight-mode.
authorRichard M. Stallman <rms@gnu.org>
Fri, 7 Aug 1998 08:53:47 +0000 (08:53 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 7 Aug 1998 08:53:47 +0000 (08:53 +0000)
lisp/midnight.el

index ba68718bde9d82f11774e14d35793b69917a3f69..062d3fae09fc512d9ff7ad798076a421b480199e 100644 (file)
@@ -219,8 +219,7 @@ to its second argument."
 
 (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.