Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
cef7e1da
Commit
cef7e1da
authored
Aug 07, 1998
by
Richard M. Stallman
Browse files
(midnight-delay-set): Use run-hooks directly.
(midnight-timer-function): Function deleted.
parent
08e77a49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
lisp/midnight.el
lisp/midnight.el
+1
-5
No files found.
lisp/midnight.el
View file @
cef7e1da
...
...
@@ -215,11 +215,7 @@ to its second argument."
(
when
(
timerp
midnight-timer
)
(
cancel-timer
midnight-timer
))
(
setq
midnight-timer
(
run-at-time
(
if
(
numberp
tm
)
(
+
(
midnight-next
)
tm
)
tm
)
midnight-period
'midnight-timer-function
)))
(
defun
midnight-timer-function
()
"This is the function run by the `midnight-mode' timer once each day."
(
run-hooks
'midnight-hook
))
midnight-period
'run-hooks
'midnight-hook
)))
(
defcustom
midnight-delay
3600
"*The number of seconds after the midnight when the `midnight-timer' is run.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment