(diary-hebrew-sabbath-candles): Simplify.
This commit is contained in:
parent
a9df811d97
commit
d347df4fae
2 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue