]> git.eshelyaron.com Git - emacs.git/commitdiff
(diary-hebrew-sabbath-candles): Simplify.
authorGlenn Morris <rgm@gnu.org>
Sat, 5 Apr 2008 21:28:43 +0000 (21:28 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 5 Apr 2008 21:28:43 +0000 (21:28 +0000)
lisp/ChangeLog
lisp/calendar/cal-hebrew.el

index d7d0fe7c35add8136f093b681f6420708d4fdb9a..1c0601493cf2c303322167f0c62227f112c2771b 100644 (file)
@@ -45,6 +45,7 @@
        * calendar/cal-hebrew.el (diary-hebrew-sabbath-candles-minutes)
        (diary-hebrew-sabbath-candles): Move here from solar.el and rename.
        Doc fix.  Keep old name as alias.
+       (diary-hebrew-sabbath-candles): Simplify.
        (solar-setup, solar-sunrise-sunset, calendar-latitude)
        (calendar-longitude, calendar-time-zone): Declare for compiler.
        * calendar/diary-lib.el (list-sexp-diary-entries): Update doc for
index f98bb00ff46eb93519f69e29a78d973e4ef6ea22..4b28c760dde5dc28d13a29e77d70be6df966bfd2 100644 (file)
@@ -1145,15 +1145,15 @@ use when highlighting the day in the calendar."
   (or (and calendar-latitude calendar-longitude calendar-time-zone)
       (solar-setup))
   (if (= (% (calendar-absolute-from-gregorian date) 7) 5) ; Friday
-      (let* ((sunset (cadr (solar-sunrise-sunset date)))
-             (light (if sunset
-                        (cons (- (car sunset)
-                                 (/ diary-hebrew-sabbath-candles-minutes 60.0))
-                              (cdr sunset)))))
+      (let ((sunset (cadr (solar-sunrise-sunset date))))
         (if sunset
-            (cons mark
-                  (format "%s Sabbath candle lighting"
-                          (apply 'solar-time-string light)))))))
+            (cons mark (format
+                        "%s Sabbath candle lighting"
+                        (apply 'solar-time-string
+                               (cons (- (car sunset)
+                                        (/ diary-hebrew-sabbath-candles-minutes
+                                           60.0))
+                                     (cdr sunset)))))))))
 
 ;;;###diary-autoload
 (define-obsolete-function-alias 'diary-sabbath-candles