aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-04-18 21:11:01 -0700
committerGlenn Morris2011-04-18 21:11:01 -0700
commitbc4f7f3d586a8d32718e27e99226d1b5ab091db5 (patch)
tree7d3239f45a1385b3686c74fbccce23f5509a71c1
parent16a43933e891bae502efbe367e32608fcfffdec3 (diff)
downloademacs-bc4f7f3d586a8d32718e27e99226d1b5ab091db5.tar.gz
emacs-bc4f7f3d586a8d32718e27e99226d1b5ab091db5.zip
calendar housekeeping prompted by lexical-binding.
* lisp/calendar/appt.el (appt-make-list): * lisp/calendar/cal-china.el (calendar-chinese-date-string): * lisp/calendar/cal-hebrew.el (calendar-hebrew-list-yahrzeits) (diary-hebrew-yahrzeit): * lisp/calendar/cal-tex.el (cal-tex-last-blank-p, cal-tex-cursor-week2): * lisp/calendar/calendar.el (calendar-generate-window): * lisp/calendar/time-date.el (time-to-days): Remove unused local variables. * lisp/calendar/cal-dst.el (dst-adjust-time): Remove never-implemented optional argument `style'. * lisp/calendar/cal-tex.el (cal-tex-list-holidays, cal-tex-cursor-month) (cal-tex-cursor-week, cal-tex-cursor-week2, cal-tex-cursor-week-iso) (cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week) (cal-tex-cursor-filofax-daily, cal-tex-mini-calendar) * lisp/calendar/cal-html.el (cal-html-insert-minical): * lisp/calendar/diary-lib.el (diary-list-entries-1, diary-list-entries) (calendar-mark-date-pattern): Prefix "unused" locals.
-rw-r--r--lisp/ChangeLog23
-rw-r--r--lisp/calendar/appt.el1
-rw-r--r--lisp/calendar/cal-china.el3
-rw-r--r--lisp/calendar/cal-dst.el6
-rw-r--r--lisp/calendar/cal-hebrew.el4
-rw-r--r--lisp/calendar/cal-html.el2
-rw-r--r--lisp/calendar/cal-tex.el27
-rw-r--r--lisp/calendar/calendar.el1
-rw-r--r--lisp/calendar/diary-lib.el6
-rw-r--r--lisp/calendar/time-date.el2
10 files changed, 42 insertions, 33 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2e024d34981..693fae97ee5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,26 @@
12011-04-19 Glenn Morris <rgm@gnu.org>
2
3 * calendar/cal-tex.el (cal-tex-list-holidays, cal-tex-cursor-month)
4 (cal-tex-cursor-week, cal-tex-cursor-week2, cal-tex-cursor-week-iso)
5 (cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
6 (cal-tex-cursor-filofax-daily, cal-tex-mini-calendar)
7 * calendar/cal-html.el (cal-html-insert-minical):
8 * calendar/diary-lib.el (diary-list-entries-1, diary-list-entries)
9 (calendar-mark-date-pattern):
10 Prefix "unused" locals.
11
12 * calendar/cal-dst.el (dst-adjust-time): Remove never-implemented
13 optional argument `style'.
14
15 * calendar/appt.el (appt-make-list):
16 * calendar/cal-china.el (calendar-chinese-date-string):
17 * calendar/cal-hebrew.el (calendar-hebrew-list-yahrzeits)
18 (diary-hebrew-yahrzeit):
19 * calendar/cal-tex.el (cal-tex-last-blank-p, cal-tex-cursor-week2):
20 * calendar/calendar.el (calendar-generate-window):
21 * calendar/time-date.el (time-to-days):
22 Remove unused local variables.
23
12011-04-18 Chong Yidong <cyd@stupidchicken.com> 242011-04-18 Chong Yidong <cyd@stupidchicken.com>
2 25
3 * emacs-lisp/tabulated-list.el (tabulated-list-mode): Use a custom 26 * emacs-lisp/tabulated-list.el (tabulated-list-mode): Use a custom
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el
index c0f4f0f3929..1394efa880e 100644
--- a/lisp/calendar/appt.el
+++ b/lisp/calendar/appt.el
@@ -509,7 +509,6 @@ Any appointments made with `appt-add' are not affected by this function."
509 ;; entry begins with a time, add it to the 509 ;; entry begins with a time, add it to the
510 ;; appt-time-msg-list. Then sort the list. 510 ;; appt-time-msg-list. Then sort the list.
511 (let ((entry-list diary-entries-list) 511 (let ((entry-list diary-entries-list)
512 (new-time-string "")
513 time-string) 512 time-string)
514 ;; Below, we assume diary-entries-list was in date 513 ;; Below, we assume diary-entries-list was in date
515 ;; order. It is, unless something on 514 ;; order. It is, unless something on
diff --git a/lisp/calendar/cal-china.el b/lisp/calendar/cal-china.el
index fce398709ad..d17c2c71f8a 100644
--- a/lisp/calendar/cal-china.el
+++ b/lisp/calendar/cal-china.el
@@ -575,8 +575,7 @@ Defaults to today's date if DATE is not given."
575 ;; Remainder of (1+(floor month))/12, with 575 ;; Remainder of (1+(floor month))/12, with
576 ;; 12 instead of 0. 576 ;; 12 instead of 0.
577 (1+ (mod (floor month) 12)) 577 (1+ (mod (floor month) 12))
578 1))) 578 1))))
579 (m-cycle (% (+ (* year 5) (floor month)) 60)))
580 (format "Cycle %s, year %s (%s), %smonth %s%s, day %s (%s)" 579 (format "Cycle %s, year %s (%s), %smonth %s%s, day %s (%s)"
581 cycle 580 cycle
582 year (calendar-chinese-sexagesimal-name year) 581 year (calendar-chinese-sexagesimal-name year)
diff --git a/lisp/calendar/cal-dst.el b/lisp/calendar/cal-dst.el
index e915f7e2696..ffb367a70f6 100644
--- a/lisp/calendar/cal-dst.el
+++ b/lisp/calendar/cal-dst.el
@@ -445,16 +445,12 @@ Fractional part of DATE is local standard time of day."
445 (or (<= dst-starts date) (< date dst-ends)))))) 445 (or (<= dst-starts date) (< date dst-ends))))))
446 446
447;; used by calc, lunar, solar. 447;; used by calc, lunar, solar.
448(defun dst-adjust-time (date time &optional style) 448(defun dst-adjust-time (date time)
449 "Adjust, to account for dst on DATE, decimal fraction standard TIME. 449 "Adjust, to account for dst on DATE, decimal fraction standard TIME.
450Returns a list (date adj-time zone) where `date' and `adj-time' are the values 450Returns a list (date adj-time zone) where `date' and `adj-time' are the values
451adjusted for `zone'; here `date' is a list (month day year), `adj-time' is a 451adjusted for `zone'; here `date' is a list (month day year), `adj-time' is a
452decimal fraction time, and `zone' is a string. 452decimal fraction time, and `zone' is a string.
453 453
454Optional parameter STYLE forces the result time to be standard time when its
455value is 'standard and daylight saving time (if available) when its value is
456'daylight.
457
458Conversion to daylight saving time is done according to 454Conversion to daylight saving time is done according to
459`calendar-daylight-savings-starts', `calendar-daylight-savings-ends', 455`calendar-daylight-savings-starts', `calendar-daylight-savings-ends',
460`calendar-daylight-savings-starts-time', 456`calendar-daylight-savings-starts-time',
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el
index 44c3e62a7c2..52bf442915f 100644
--- a/lisp/calendar/cal-hebrew.el
+++ b/lisp/calendar/cal-hebrew.el
@@ -764,8 +764,6 @@ from the cursor position."
764 (message "Computing Yahrzeits...") 764 (message "Computing Yahrzeits...")
765 (let* ((h-date (calendar-hebrew-from-absolute 765 (let* ((h-date (calendar-hebrew-from-absolute
766 (calendar-absolute-from-gregorian death-date))) 766 (calendar-absolute-from-gregorian death-date)))
767 (h-month (calendar-extract-month h-date))
768 (h-day (calendar-extract-day h-date))
769 (h-year (calendar-extract-year h-date)) 767 (h-year (calendar-extract-year h-date))
770 (i (1- start-year))) 768 (i (1- start-year)))
771 (calendar-in-read-only-buffer calendar-hebrew-yahrzeit-buffer 769 (calendar-in-read-only-buffer calendar-hebrew-yahrzeit-buffer
@@ -900,8 +898,6 @@ use when highlighting the day in the calendar."
900 (+ (calendar-absolute-from-gregorian 898 (+ (calendar-absolute-from-gregorian
901 (diary-make-date death-month death-day death-year)) 899 (diary-make-date death-month death-day death-year))
902 (if after-sunset 1 0)))) 900 (if after-sunset 1 0))))
903 (h-month (calendar-extract-month h-date))
904 (h-day (calendar-extract-day h-date))
905 (h-year (calendar-extract-year h-date)) 901 (h-year (calendar-extract-year h-date))
906 (d (calendar-absolute-from-gregorian date)) 902 (d (calendar-absolute-from-gregorian date))
907 (yr (calendar-extract-year (calendar-hebrew-from-absolute d))) 903 (yr (calendar-extract-year (calendar-hebrew-from-absolute d)))
diff --git a/lisp/calendar/cal-html.el b/lisp/calendar/cal-html.el
index bd10aa176ae..bcc19ccda0b 100644
--- a/lisp/calendar/cal-html.el
+++ b/lisp/calendar/cal-html.el
@@ -247,7 +247,7 @@ Contains links to previous and next month and year, and current minical."
247 (insert cal-html-e-tablerow-string) 247 (insert cal-html-e-tablerow-string)
248 ;; Initial empty slots. 248 ;; Initial empty slots.
249 (insert cal-html-b-tablerow-string) 249 (insert cal-html-b-tablerow-string)
250 (dotimes (i blank-days) 250 (dotimes (_i blank-days)
251 (insert 251 (insert
252 cal-html-b-tabledata-string 252 cal-html-b-tabledata-string
253 cal-html-e-tabledata-string)) 253 cal-html-e-tabledata-string))
diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el
index 2fc215c06c4..89e265aeb7e 100644
--- a/lisp/calendar/cal-tex.el
+++ b/lisp/calendar/cal-tex.el
@@ -253,7 +253,7 @@ This definition is the heart of the calendar!")
253 3))) 253 3)))
254 holidays in-range a) 254 holidays in-range a)
255 (calendar-increment-month displayed-month displayed-year 1) 255 (calendar-increment-month displayed-month displayed-year 1)
256 (dotimes (idummy number-of-intervals) 256 (dotimes (_idummy number-of-intervals)
257 (setq holidays (append holidays (calendar-holiday-list))) 257 (setq holidays (append holidays (calendar-holiday-list)))
258 (calendar-increment-month displayed-month displayed-year 3)) 258 (calendar-increment-month displayed-month displayed-year 3))
259 (dolist (hol holidays) 259 (dolist (hol holidays)
@@ -525,7 +525,7 @@ indicates a buffer position to use instead of point."
525 (cal-tex-insert-day-names) 525 (cal-tex-insert-day-names)
526 (cal-tex-nl ".2cm") 526 (cal-tex-nl ".2cm")
527 (cal-tex-insert-blank-days month year cal-tex-day-prefix) 527 (cal-tex-insert-blank-days month year cal-tex-day-prefix)
528 (dotimes (idummy n) 528 (dotimes (_idummy n)
529 (cal-tex-insert-days month year diary-list holidays cal-tex-day-prefix) 529 (cal-tex-insert-days month year diary-list holidays cal-tex-day-prefix)
530 (when (= (calendar-week-end-day) 530 (when (= (calendar-week-end-day)
531 (calendar-day-of-week 531 (calendar-day-of-week
@@ -642,7 +642,7 @@ in the calendar starting in MONTH YEAR."
642 ;; start of the last week in the month. 642 ;; start of the last week in the month.
643 (catch 'found 643 (catch 'found
644 (let ((last-day (calendar-last-day-of-month month year)) 644 (let ((last-day (calendar-last-day-of-month month year))
645 day dow) 645 dow)
646 (dotimes (i 7) 646 (dotimes (i 7)
647 (if (memq (setq dow (calendar-day-of-week 647 (if (memq (setq dow (calendar-day-of-week
648 (list month (- last-day i) year))) 648 (list month (- last-day i) year)))
@@ -717,7 +717,7 @@ entries are not shown). The calendar shows the hours 8-12am, 1-5pm."
717 (cal-tex-e-center) 717 (cal-tex-e-center)
718 (cal-tex-hspace "-.2in") 718 (cal-tex-hspace "-.2in")
719 (cal-tex-b-parbox "l" "7in") 719 (cal-tex-b-parbox "l" "7in")
720 (dotimes (jdummy 7) 720 (dotimes (_jdummy 7)
721 (cal-tex-week-hours date holidays "3.1") 721 (cal-tex-week-hours date holidays "3.1")
722 (setq date (cal-tex-incr-date date))) 722 (setq date (cal-tex-incr-date date)))
723 (cal-tex-e-parbox) 723 (cal-tex-e-parbox)
@@ -749,7 +749,6 @@ Optional EVENT indicates a buffer position to use instead of point."
749 (calendar-cursor-to-date t event))))) 749 (calendar-cursor-to-date t event)))))
750 (month (calendar-extract-month date)) 750 (month (calendar-extract-month date))
751 (year (calendar-extract-year date)) 751 (year (calendar-extract-year date))
752 (d date)
753 (d1 (calendar-absolute-from-gregorian date)) 752 (d1 (calendar-absolute-from-gregorian date))
754 (d2 (+ (* 7 n) d1)) 753 (d2 (+ (* 7 n) d1))
755 (holidays (if cal-tex-holidays 754 (holidays (if cal-tex-holidays
@@ -773,7 +772,7 @@ Optional EVENT indicates a buffer position to use instead of point."
773 (cal-tex-e-center) 772 (cal-tex-e-center)
774 (cal-tex-hspace "-.2in") 773 (cal-tex-hspace "-.2in")
775 (cal-tex-b-parbox "l" "\\textwidth") 774 (cal-tex-b-parbox "l" "\\textwidth")
776 (dotimes (jdummy 3) 775 (dotimes (_jdummy 3)
777 (cal-tex-week-hours date holidays "5") 776 (cal-tex-week-hours date holidays "5")
778 (setq date (cal-tex-incr-date date))) 777 (setq date (cal-tex-incr-date date)))
779 (cal-tex-e-parbox) 778 (cal-tex-e-parbox)
@@ -801,7 +800,7 @@ Optional EVENT indicates a buffer position to use instead of point."
801 (insert "}") 800 (insert "}")
802 (cal-tex-nl) 801 (cal-tex-nl)
803 (cal-tex-b-parbox "l" "\\textwidth") 802 (cal-tex-b-parbox "l" "\\textwidth")
804 (dotimes (jdummy 4) 803 (dotimes (_jdummy 4)
805 (cal-tex-week-hours date holidays "5") 804 (cal-tex-week-hours date holidays "5")
806 (setq date (cal-tex-incr-date date))) 805 (setq date (cal-tex-incr-date date)))
807 (cal-tex-e-parbox) 806 (cal-tex-e-parbox)
@@ -863,7 +862,7 @@ position to use instead of point."
863 (cal-tex-nl ".5cm") 862 (cal-tex-nl ".5cm")
864 (cal-tex-e-center) 863 (cal-tex-e-center)
865 (cal-tex-b-parbox "l" "\\textwidth") 864 (cal-tex-b-parbox "l" "\\textwidth")
866 (dotimes (j 7) 865 (dotimes (_j 7)
867 (cal-tex-b-parbox "t" "\\textwidth") 866 (cal-tex-b-parbox "t" "\\textwidth")
868 (cal-tex-b-parbox "t" "\\textwidth") 867 (cal-tex-b-parbox "t" "\\textwidth")
869 (cal-tex-rule "0pt" "\\textwidth" ".2mm") 868 (cal-tex-rule "0pt" "\\textwidth" ".2mm")
@@ -1112,7 +1111,7 @@ Optional EVENT indicates a buffer position to use instead of point."
1112 (cal-tex-month-name (calendar-extract-month d)) 1111 (cal-tex-month-name (calendar-extract-month d))
1113 (calendar-extract-year d)))))) 1112 (calendar-extract-year d))))))
1114 (insert "%\n") 1113 (insert "%\n")
1115 (dotimes (jdummy 7) 1114 (dotimes (_jdummy 7)
1116 (if (zerop (mod i 2)) 1115 (if (zerop (mod i 2))
1117 (insert "\\rightday") 1116 (insert "\\rightday")
1118 (insert "\\leftday")) 1117 (insert "\\leftday"))
@@ -1216,7 +1215,7 @@ Optional EVENT indicates a buffer position to use instead of point."
1216 (cal-tex-month-name (calendar-extract-month d)) 1215 (cal-tex-month-name (calendar-extract-month d))
1217 (calendar-extract-year d)))))) 1216 (calendar-extract-year d))))))
1218 (insert "%\n") 1217 (insert "%\n")
1219 (dotimes (jdummy 3) 1218 (dotimes (_jdummy 3)
1220 (insert "\\leftday") 1219 (insert "\\leftday")
1221 (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) 1220 (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date)))
1222 (cal-tex-arg (number-to-string (calendar-extract-day date))) 1221 (cal-tex-arg (number-to-string (calendar-extract-day date)))
@@ -1247,7 +1246,7 @@ Optional EVENT indicates a buffer position to use instead of point."
1247 (cal-tex-month-name (calendar-extract-month d)) 1246 (cal-tex-month-name (calendar-extract-month d))
1248 (calendar-extract-year d)))))) 1247 (calendar-extract-year d))))))
1249 (insert "%\n") 1248 (insert "%\n")
1250 (dotimes (jdummy 2) 1249 (dotimes (_jdummy 2)
1251 (insert "\\rightday") 1250 (insert "\\rightday")
1252 (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) 1251 (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date)))
1253 (cal-tex-arg (number-to-string (calendar-extract-day date))) 1252 (cal-tex-arg (number-to-string (calendar-extract-day date)))
@@ -1256,7 +1255,7 @@ Optional EVENT indicates a buffer position to use instead of point."
1256 (cal-tex-arg (eval cal-tex-daily-string)) 1255 (cal-tex-arg (eval cal-tex-daily-string))
1257 (insert "%\n") 1256 (insert "%\n")
1258 (setq date (cal-tex-incr-date date))) 1257 (setq date (cal-tex-incr-date date)))
1259 (dotimes (jdummy 2) 1258 (dotimes (_jdummy 2)
1260 (insert "\\weekend") 1259 (insert "\\weekend")
1261 (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) 1260 (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date)))
1262 (cal-tex-arg (number-to-string (calendar-extract-day date))) 1261 (cal-tex-arg (number-to-string (calendar-extract-day date)))
@@ -1362,7 +1361,7 @@ Optional EVENT indicates a buffer position to use instead of point."
1362 (cal-tex-newpage) 1361 (cal-tex-newpage)
1363 (setq date (cal-tex-incr-date date))) 1362 (setq date (cal-tex-incr-date date)))
1364 (insert "%\n") 1363 (insert "%\n")
1365 (dotimes (jdummy 2) 1364 (dotimes (_jdummy 2)
1366 (insert "\\lefthead") 1365 (insert "\\lefthead")
1367 (cal-tex-arg (calendar-date-string date)) 1366 (cal-tex-arg (calendar-date-string date))
1368 (insert "\\weekend") 1367 (insert "\\weekend")
@@ -1523,7 +1522,7 @@ Optional string COLSEP gives the column separation (default \"1mm\")."
1523 (if (= i 6) 1522 (if (= i 6)
1524 "\\\\[0.7mm]\n" 1523 "\\\\[0.7mm]\n"
1525 " & ")))) 1524 " & "))))
1526 (dotimes (idummy blank-days) 1525 (dotimes (_idummy blank-days)
1527 (setq str (concat str " & "))) 1526 (setq str (concat str " & ")))
1528 (dotimes (i last) 1527 (dotimes (i last)
1529 (setq str (concat str (number-to-string (1+ i))) 1528 (setq str (concat str (number-to-string (1+ i)))
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 99b0c21c94c..e81eb554458 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1363,7 +1363,6 @@ Optional integers MON and YR are used instead of today's date."
1363 (year (calendar-extract-year today)) 1363 (year (calendar-extract-year today))
1364 (today-visible (or (not mon) 1364 (today-visible (or (not mon)
1365 (<= (abs (calendar-interval mon yr month year)) 1))) 1365 (<= (abs (calendar-interval mon yr month year)) 1)))
1366 (day-in-week (calendar-day-of-week today))
1367 (in-calendar-window (eq (window-buffer (selected-window)) 1366 (in-calendar-window (eq (window-buffer (selected-window))
1368 (get-buffer calendar-buffer)))) 1367 (get-buffer calendar-buffer))))
1369 (calendar-generate (or mon month) (or yr year)) 1368 (calendar-generate (or mon month) (or yr year))
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 9a455c4f2f0..a2528ac22ca 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -710,7 +710,7 @@ MONTHS is an array of month names. SYMBOL marks diary entries of the type
710in question. ABSFUNC is a function that converts absolute dates to dates 710in question. ABSFUNC is a function that converts absolute dates to dates
711of the appropriate type." 711of the appropriate type."
712 (let ((gdate original-date)) 712 (let ((gdate original-date))
713 (dotimes (idummy number) 713 (dotimes (_idummy number)
714 (diary-list-entries-2 714 (diary-list-entries-2
715 (funcall absfunc (calendar-absolute-from-gregorian gdate)) 715 (funcall absfunc (calendar-absolute-from-gregorian gdate))
716 diary-nonmarking-symbol file-glob-attrs list-only months symbol gdate) 716 diary-nonmarking-symbol file-glob-attrs list-only months symbol gdate)
@@ -820,7 +820,7 @@ LIST-ONLY is non-nil, in which case it just returns the list."
820 (set (make-local-variable 'diary-selective-display) t) 820 (set (make-local-variable 'diary-selective-display) t)
821 (overlay-put ol 'invisible 'diary) 821 (overlay-put ol 'invisible 'diary)
822 (overlay-put ol 'evaporate t))) 822 (overlay-put ol 'evaporate t)))
823 (dotimes (idummy number) 823 (dotimes (_idummy number)
824 (let ((sexp-found (diary-list-sexp-entries date)) 824 (let ((sexp-found (diary-list-sexp-entries date))
825 (entry-found (diary-list-entries-2 825 (entry-found (diary-list-entries-2
826 date diary-nonmarking-symbol 826 date diary-nonmarking-symbol
@@ -1509,7 +1509,7 @@ passed to `calendar-mark-visible-date' as MARK."
1509 (let ((m displayed-month) 1509 (let ((m displayed-month)
1510 (y displayed-year)) 1510 (y displayed-year))
1511 (calendar-increment-month m y -1) 1511 (calendar-increment-month m y -1)
1512 (dotimes (idummy 3) 1512 (dotimes (_idummy 3)
1513 (calendar-mark-month m y month day year color) 1513 (calendar-mark-month m y month day year color)
1514 (calendar-increment-month m y 1))))) 1514 (calendar-increment-month m y 1)))))
1515 1515
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el
index 62203600612..70d096c4108 100644
--- a/lisp/calendar/time-date.el
+++ b/lisp/calendar/time-date.el
@@ -243,8 +243,6 @@ DATE1 and DATE2 should be date-time strings."
243TIME should be a time value. 243TIME should be a time value.
244The Gregorian date Sunday, December 31, 1bce is imaginary." 244The Gregorian date Sunday, December 31, 1bce is imaginary."
245 (let* ((tim (decode-time time)) 245 (let* ((tim (decode-time time))
246 (month (nth 4 tim))
247 (day (nth 3 tim))
248 (year (nth 5 tim))) 246 (year (nth 5 tim)))
249 (+ (time-to-day-in-year time) ; Days this year 247 (+ (time-to-day-in-year time) ; Days this year
250 (* 365 (1- year)) ; + Days in prior years 248 (* 365 (1- year)) ; + Days in prior years