Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ed4761a9
Commit
ed4761a9
authored
Apr 23, 2005
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(midnight-timer): Move defvar up.
parent
7735d2e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lisp/midnight.el
lisp/midnight.el
+5
-5
No files found.
lisp/midnight.el
View file @
ed4761a9
...
...
@@ -48,6 +48,11 @@
:group
'calendar
:version
"20.3"
)
(
defvar
midnight-timer
nil
"Timer running the `midnight-hook' `midnight-delay' seconds after midnight.
Use `cancel-timer' to stop it and `midnight-delay-set' to change
the time when it is run."
)
(
defcustom
midnight-mode
nil
"*Non-nil means run `midnight-hook' at midnight.
Setting this variable outside customize has no effect;
...
...
@@ -204,11 +209,6 @@ The default value is `clean-buffer-list'."
(
multiple-value-bind
(
sec
min
hrs
)
(
decode-time
)
(
-
(
*
24
60
60
)
(
*
60
60
hrs
)
(
*
60
min
)
sec
)))
(
defvar
midnight-timer
nil
"Timer running the `midnight-hook' `midnight-delay' seconds after midnight.
Use `cancel-timer' to stop it and `midnight-delay-set' to change
the time when it is run."
)
;;;###autoload
(
defun
midnight-delay-set
(
symb
tm
)
"Modify `midnight-timer' according to `midnight-delay'.
...
...
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