* 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
(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