]> git.eshelyaron.com Git - emacs.git/commitdiff
(calendar-sunrise-sunset): Add date to message.
authorRichard M. Stallman <rms@gnu.org>
Sun, 30 Jan 1994 00:29:09 +0000 (00:29 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 30 Jan 1994 00:29:09 +0000 (00:29 +0000)
lisp/calendar/solar.el

index ad226b767a4f73a955eb9dc39b235f4824c33630..d0e9558bf1008aca0aa23a0d6971e176545a13eb 100644 (file)
@@ -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.