diff options
| author | Glenn Morris | 2008-04-05 21:28:43 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-05 21:28:43 +0000 |
| commit | d347df4fae31fe9291ed808777a2483cbf003a9b (patch) | |
| tree | 9e36a6461c2676e220c3aadb21a57ec3885986ed | |
| parent | a9df811d97481a5ca3c8d81441aaeb03b517fba0 (diff) | |
| download | emacs-d347df4fae31fe9291ed808777a2483cbf003a9b.tar.gz emacs-d347df4fae31fe9291ed808777a2483cbf003a9b.zip | |
(diary-hebrew-sabbath-candles): Simplify.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/calendar/cal-hebrew.el | 16 |
2 files changed, 9 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d7d0fe7c35a..1c0601493cf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -45,6 +45,7 @@ | |||
| 45 | * calendar/cal-hebrew.el (diary-hebrew-sabbath-candles-minutes) | 45 | * calendar/cal-hebrew.el (diary-hebrew-sabbath-candles-minutes) |
| 46 | (diary-hebrew-sabbath-candles): Move here from solar.el and rename. | 46 | (diary-hebrew-sabbath-candles): Move here from solar.el and rename. |
| 47 | Doc fix. Keep old name as alias. | 47 | Doc fix. Keep old name as alias. |
| 48 | (diary-hebrew-sabbath-candles): Simplify. | ||
| 48 | (solar-setup, solar-sunrise-sunset, calendar-latitude) | 49 | (solar-setup, solar-sunrise-sunset, calendar-latitude) |
| 49 | (calendar-longitude, calendar-time-zone): Declare for compiler. | 50 | (calendar-longitude, calendar-time-zone): Declare for compiler. |
| 50 | * calendar/diary-lib.el (list-sexp-diary-entries): Update doc for | 51 | * calendar/diary-lib.el (list-sexp-diary-entries): Update doc for |
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el index f98bb00ff46..4b28c760dde 100644 --- a/lisp/calendar/cal-hebrew.el +++ b/lisp/calendar/cal-hebrew.el | |||
| @@ -1145,15 +1145,15 @@ use when highlighting the day in the calendar." | |||
| 1145 | (or (and calendar-latitude calendar-longitude calendar-time-zone) | 1145 | (or (and calendar-latitude calendar-longitude calendar-time-zone) |
| 1146 | (solar-setup)) | 1146 | (solar-setup)) |
| 1147 | (if (= (% (calendar-absolute-from-gregorian date) 7) 5) ; Friday | 1147 | (if (= (% (calendar-absolute-from-gregorian date) 7) 5) ; Friday |
| 1148 | (let* ((sunset (cadr (solar-sunrise-sunset date))) | 1148 | (let ((sunset (cadr (solar-sunrise-sunset date)))) |
| 1149 | (light (if sunset | ||
| 1150 | (cons (- (car sunset) | ||
| 1151 | (/ diary-hebrew-sabbath-candles-minutes 60.0)) | ||
| 1152 | (cdr sunset))))) | ||
| 1153 | (if sunset | 1149 | (if sunset |
| 1154 | (cons mark | 1150 | (cons mark (format |
| 1155 | (format "%s Sabbath candle lighting" | 1151 | "%s Sabbath candle lighting" |
| 1156 | (apply 'solar-time-string light))))))) | 1152 | (apply 'solar-time-string |
| 1153 | (cons (- (car sunset) | ||
| 1154 | (/ diary-hebrew-sabbath-candles-minutes | ||
| 1155 | 60.0)) | ||
| 1156 | (cdr sunset))))))))) | ||
| 1157 | 1157 | ||
| 1158 | ;;;###diary-autoload | 1158 | ;;;###diary-autoload |
| 1159 | (define-obsolete-function-alias 'diary-sabbath-candles | 1159 | (define-obsolete-function-alias 'diary-sabbath-candles |