aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1998-08-07 08:53:47 +0000
committerRichard M. Stallman <[email protected]>1998-08-07 08:53:47 +0000
commitcbb41490e936b8db1909f75f70ff8e79961c8fd1 (patch)
tree1a28570592da7adbf3f202ad79e7da8efa94aea6
parent748b5d1b3ed2f6397c4277a7d20854dd0dc66d97 (diff)
(midnight-timer-function): No need to test midnight-mode.
-rw-r--r--lisp/midnight.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/midnight.el b/lisp/midnight.el
index ba68718bde..062d3fae09 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.