summaryrefslogtreecommitdiff
path: root/lisp/midnight.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-08-07 08:53:47 +0000
committerRichard M. Stallman <rms@gnu.org>1998-08-07 08:53:47 +0000
commit5ec5e51feef589cf3d5d742e2d15491b7b0f398e (patch)
treedb6b423e7c4ac6c6166d32eb42734aca8315ed78 /lisp/midnight.el
parentc715836f998e4746e0c45fc126eb1e03e5037b55 (diff)
downloademacs-5ec5e51feef589cf3d5d742e2d15491b7b0f398e.tar.gz
(midnight-timer-function): No need to test midnight-mode.
Diffstat (limited to 'lisp/midnight.el')
-rw-r--r--lisp/midnight.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/midnight.el b/lisp/midnight.el
index ba68718bde9..062d3fae09f 100644
--- a/lisp/midnight.el
+++ b/lisp/midnight.el
@@ -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.