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
abd93e66
Commit
abd93e66
authored
Jan 30, 1994
by
Richard M. Stallman
Browse files
(calendar-sunrise-sunset): Add date to message.
parent
1a380827
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lisp/calendar/solar.el
lisp/calendar/solar.el
+5
-4
No files found.
lisp/calendar/solar.el
View file @
abd93e66
...
...
@@ -455,10 +455,11 @@ Accurate to +/- 2 minutes."
(
interactive
)
(
if
(
not
(
and
calendar-latitude
calendar-longitude
calendar-time-zone
))
(
solar-setup
))
(
message
(
solar-sunrise-sunset
(
or
(
calendar-cursor-to-date
)
(
error
"Cursor is not on a date!"
)))))
(
let
((
date
(
or
(
calendar-cursor-to-date
)
(
error
"Cursor is not on a date!"
))))
(
message
"%s: %s"
(
calendar-date-string
date
t
t
)
(
solar-sunrise-sunset
date
))))
(
defun
diary-sunrise-sunset
()
"Local time of sunrise and sunset as a diary entry.
...
...
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