summaryrefslogtreecommitdiff
path: root/lisp/calendar
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2018-04-04 07:50:45 -0700
committerGlenn Morris <rgm@gnu.org>2018-04-04 07:50:45 -0700
commit2f779d8ce804de84fed55a6b0aa74499ef369852 (patch)
tree6c2ce6ccea8faceb9c3bfa93536788e5bdaf2510 /lisp/calendar
parentbc17d5d12474e57bb50535224be3c96349df383a (diff)
parent3109d2bb17f975c045e1b683e73254e6d24ab017 (diff)
downloademacs-2f779d8ce804de84fed55a6b0aa74499ef369852.tar.gz
Merge from origin/emacs-26
3109d2b (origin/emacs-26) ; * lisp/ldefs-boot.el: Update. 86825c4 * etc/NEWS: Remove temporary markup. 737d0a2 * Update etc/AUTHORS fbd03ba * ChangeLog.3: Update 56794ac Fix Bug#31022 a231c33 Update "Calendrical Calculations" cites 1527235 ; * doc/lispref/compile.texi (Compilation Functions): Fix wor... b07decd ; * doc/lispref/compile.texi (Compilation Functions): Fix typo a64c11a Fix term.el rendering following a window resize (Bug#30544) 1e6f09a * files.el (auto-save-visited-mode): Don't prompt for filenames. eb8b13f ; * etc/NEWS: Improve the entry about pinentry.el removal. 52501ec Quote a few backticks in docstrings. Conflicts: etc/NEWS lisp/ldefs-boot.el
Diffstat (limited to 'lisp/calendar')
-rw-r--r--lisp/calendar/calendar.el33
1 files changed, 17 insertions, 16 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 4bf8b67ee53..16009df8245 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -76,20 +76,19 @@
;; solar.el Sunrise/sunset, equinoxes/solstices
;; Technical details of all the calendrical calculations can be found in
-;; ``Calendrical Calculations: The Millennium Edition'' by Edward M. Reingold
-;; and Nachum Dershowitz, Cambridge University Press (2001).
+;; "Calendrical Calculations: The Ultimate Edition" by Edward M. Reingold
+;; and Nachum Dershowitz, Cambridge University Press (2018).
-;; An earlier version of the technical details appeared in
-;; ``Calendrical Calculations'' by Nachum Dershowitz and Edward M. Reingold,
+;; An earlier version of the technical details appeared in "Calendrical
+;; Calculations" by Nachum Dershowitz and Edward M. Reingold,
;; Software--Practice and Experience, Volume 20, Number 9 (September, 1990),
-;; pages 899-928, and in ``Calendrical Calculations, Part II: Three Historical
-;; Calendars'' by E. M. Reingold, N. Dershowitz, and S. M. Clamen,
-;; Software--Practice and Experience, Volume 23, Number 4 (April, 1993),
-;; pages 383-404.
-
-;; Hard copies of these two papers can be obtained by sending email to
-;; reingold@cs.uiuc.edu with the SUBJECT "send-paper-cal" (no quotes) and
-;; the message BODY containing your mailing address (snail).
+;; pages 899-928 <https://doi.org/10.1002/spe.4380200905>
+;; <https://pdfs.semanticscholar.org/83b1/14f570002a7a8e1d4e3730cd0e4cdbcad212.pdf>,
+;; and in "Calendrical Calculations, Part II: Three Historical Calendars" by
+;; E. M. Reingold, N. Dershowitz, and S. M. Clamen, Software--Practice and
+;; Experience, Volume 23, Number 4 (April, 1993), pages 383-404
+;; <https://doi.org/10.1002/spe.4380230404>
+;; <http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.42.6421&rep=rep1&type=pdf>
;; A note on free variables:
@@ -1948,10 +1947,12 @@ use instead of point."
The absolute date is the number of days elapsed since the (imaginary)
Gregorian date Sunday, December 31, 1 BC. This function does not
handle dates in years BC."
- ;; See the footnote on page 384 of ``Calendrical Calculations, Part II:
- ;; Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
- ;; Clamen, Software--Practice and Experience, Volume 23, Number 4
- ;; (April, 1993), pages 383-404 for an explanation.
+ ;; For an explanation, see the footnote on page 384 of "Calendrical
+ ;; Calculations, Part II: Three Historical Calendars" by
+ ;; E. M. Reingold, N. Dershowitz, and S. M. Clamen,
+ ;; Software--Practice and Experience, Volume 23, Number 4 (April,
+ ;; 1993), pages 383-404 <https://doi.org/10.1002/spe.4380230404>
+ ;; <http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.42.6421&rep=rep1&type=pdf>.
(let* ((d0 (1- date))
(n400 (/ d0 146097))
(d1 (% d0 146097))