diff options
| -rw-r--r-- | lisp/ChangeLog | 27 | ||||
| -rw-r--r-- | lisp/calendar/cal-bahai.el | 8 | ||||
| -rw-r--r-- | lisp/calendar/cal-china.el | 8 | ||||
| -rw-r--r-- | lisp/calendar/cal-coptic.el | 8 | ||||
| -rw-r--r-- | lisp/calendar/cal-french.el | 2 | ||||
| -rw-r--r-- | lisp/calendar/cal-hebrew.el | 6 | ||||
| -rw-r--r-- | lisp/calendar/cal-islam.el | 2 | ||||
| -rw-r--r-- | lisp/calendar/cal-iso.el | 2 | ||||
| -rw-r--r-- | lisp/calendar/cal-julian.el | 4 | ||||
| -rw-r--r-- | lisp/calendar/cal-move.el | 2 | ||||
| -rw-r--r-- | lisp/calendar/cal-persia.el | 8 | ||||
| -rw-r--r-- | lisp/calendar/cal-tex.el | 12 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 8 | ||||
| -rw-r--r-- | lisp/calendar/holidays.el | 7 |
14 files changed, 67 insertions, 37 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0a30650c48b..beb9fe71e39 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,30 @@ | |||
| 1 | 2008-04-08 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * calendar/cal-menu.el (cal-menu-event-to-date): | ||
| 4 | Rename calendar-event-to-date. Update callers. | ||
| 5 | (calendar-mouse-tex-day): Rename cal-tex-mouse-day. | ||
| 6 | (calendar-mouse-tex-week): Rename cal-tex-mouse-week. | ||
| 7 | (calendar-mouse-tex-week2): Rename cal-tex-mouse-week2. | ||
| 8 | (calendar-mouse-tex-week-iso): Rename cal-tex-mouse-week-iso. | ||
| 9 | (calendar-mouse-tex-week-monday): Rename cal-tex-mouse-week-monday. | ||
| 10 | (calendar-mouse-tex-filofax-daily): Rename cal-tex-mouse-filofax-daily. | ||
| 11 | (calendar-mouse-tex-filofax-2week): Rename cal-tex-mouse-filofax-2week. | ||
| 12 | (calendar-mouse-tex-filofax-week): Rename cal-tex-mouse-filofax-week. | ||
| 13 | (calendar-mouse-tex-month): Rename cal-tex-mouse-month. | ||
| 14 | (calendar-mouse-tex-month-landscape): | ||
| 15 | Rename cal-tex-mouse-month-landscape. | ||
| 16 | (calendar-mouse-tex-year): Rename cal-tex-mouse-year. | ||
| 17 | (calendar-mouse-tex-filofax-year): Rename cal-tex-mouse-filofax-year. | ||
| 18 | (calendar-mouse-tex-year-landscape): | ||
| 19 | Rename cal-tex-mouse-year-landscape. | ||
| 20 | (cal-menu-context-mouse-menu): Update for above name changes. | ||
| 21 | |||
| 22 | * calendar/cal-bahai.el, calendar/cal-china.el, calendar/cal-coptic.el: | ||
| 23 | * calendar/cal-french.el, calendar/cal-hebrew.el, calendar/cal-islam.el: | ||
| 24 | * calendar/cal-iso.el, calendar/cal-julian.el, calendar/cal-move.el: | ||
| 25 | * calendar/cal-persia.el, calendar/cal-tex.el, calendar/calendar.el: | ||
| 26 | * calendar/holidays.el: Replace int-to-string with number-to-string. | ||
| 27 | |||
| 1 | 2008-04-08 Chong Yidong <cyd@stupidchicken.com> | 28 | 2008-04-08 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 29 | ||
| 3 | * mwheel.el (mwheel-scroll): Deactivate any temporarily active | 30 | * mwheel.el (mwheel-scroll): Deactivate any temporarily active |
diff --git a/lisp/calendar/cal-bahai.el b/lisp/calendar/cal-bahai.el index 4e9d2970558..4726c0b9c47 100644 --- a/lisp/calendar/cal-bahai.el +++ b/lisp/calendar/cal-bahai.el | |||
| @@ -135,12 +135,12 @@ Defaults to today's date if DATE is not given." | |||
| 135 | (<= d 0)) | 135 | (<= d 0)) |
| 136 | "Ayyám-i-Há" | 136 | "Ayyám-i-Há" |
| 137 | (aref calendar-bahai-month-name-array (1- m)))) | 137 | (aref calendar-bahai-month-name-array (1- m)))) |
| 138 | (day (int-to-string | 138 | (day (number-to-string |
| 139 | (if (<= d 0) | 139 | (if (<= d 0) |
| 140 | (+ d (if (calendar-bahai-leap-year-p y) 5 4)) | 140 | (+ d (if (calendar-bahai-leap-year-p y) 5 4)) |
| 141 | d))) | 141 | d))) |
| 142 | (year (int-to-string y)) | 142 | (year (number-to-string y)) |
| 143 | (month (int-to-string m)) | 143 | (month (number-to-string m)) |
| 144 | dayname) | 144 | dayname) |
| 145 | ;; Can't call calendar-date-string because of monthname oddity. | 145 | ;; Can't call calendar-date-string because of monthname oddity. |
| 146 | (mapconcat 'eval calendar-date-display-form ""))))) | 146 | (mapconcat 'eval calendar-date-display-form ""))))) |
| @@ -164,7 +164,7 @@ Reads a year, month and day." | |||
| 164 | (year (calendar-read | 164 | (year (calendar-read |
| 165 | "Bahá'à calendar year (not 0): " | 165 | "Bahá'à calendar year (not 0): " |
| 166 | (lambda (x) (not (zerop x))) | 166 | (lambda (x) (not (zerop x))) |
| 167 | (int-to-string | 167 | (number-to-string |
| 168 | (calendar-extract-year | 168 | (calendar-extract-year |
| 169 | (calendar-bahai-from-absolute | 169 | (calendar-bahai-from-absolute |
| 170 | (calendar-absolute-from-gregorian today)))))) | 170 | (calendar-absolute-from-gregorian today)))))) |
diff --git a/lisp/calendar/cal-china.el b/lisp/calendar/cal-china.el index 5590963b083..9ff392c47ee 100644 --- a/lisp/calendar/cal-china.el +++ b/lisp/calendar/cal-china.el | |||
| @@ -537,9 +537,9 @@ Defaults to today's date if DATE is not given." | |||
| 537 | (cons (format "%s (second)" (car l)) (cadr l))) | 537 | (cons (format "%s (second)" (car l)) (cadr l))) |
| 538 | (calendar-chinese-months-to-alist (cddr l))) | 538 | (calendar-chinese-months-to-alist (cddr l))) |
| 539 | (append | 539 | (append |
| 540 | (list (cons (int-to-string (car l)) (car l))) | 540 | (list (cons (number-to-string (car l)) (car l))) |
| 541 | (calendar-chinese-months-to-alist (cdr l)))) | 541 | (calendar-chinese-months-to-alist (cdr l)))) |
| 542 | (list (cons (int-to-string (car l)) (car l)))))) | 542 | (list (cons (number-to-string (car l)) (car l)))))) |
| 543 | 543 | ||
| 544 | (defun calendar-chinese-months (c y) | 544 | (defun calendar-chinese-months (c y) |
| 545 | "A list of the months in cycle C, year Y of the Chinese calendar." | 545 | "A list of the months in cycle C, year Y of the Chinese calendar." |
| @@ -569,11 +569,11 @@ Echo Chinese date unless NOECHO is non-nil." | |||
| 569 | (cycle (calendar-read | 569 | (cycle (calendar-read |
| 570 | "Chinese calendar cycle number (>44): " | 570 | "Chinese calendar cycle number (>44): " |
| 571 | (lambda (x) (> x 44)) | 571 | (lambda (x) (> x 44)) |
| 572 | (int-to-string (car c)))) | 572 | (number-to-string (car c)))) |
| 573 | (year (calendar-read | 573 | (year (calendar-read |
| 574 | "Year in Chinese cycle (1..60): " | 574 | "Year in Chinese cycle (1..60): " |
| 575 | (lambda (x) (and (<= 1 x) (<= x 60))) | 575 | (lambda (x) (and (<= 1 x) (<= x 60))) |
| 576 | (int-to-string (cadr c)))) | 576 | (number-to-string (cadr c)))) |
| 577 | (month-list (calendar-chinese-months-to-alist | 577 | (month-list (calendar-chinese-months-to-alist |
| 578 | (calendar-chinese-months cycle year))) | 578 | (calendar-chinese-months cycle year))) |
| 579 | (month (cdr (assoc | 579 | (month (cdr (assoc |
diff --git a/lisp/calendar/cal-coptic.el b/lisp/calendar/cal-coptic.el index 6d301e0bce1..f2964c58ee8 100644 --- a/lisp/calendar/cal-coptic.el +++ b/lisp/calendar/cal-coptic.el | |||
| @@ -122,10 +122,10 @@ Defaults to today's date if DATE is not given." | |||
| 122 | (if (< y 1) | 122 | (if (< y 1) |
| 123 | "" | 123 | "" |
| 124 | (let ((monthname (aref calendar-coptic-month-name-array (1- m))) | 124 | (let ((monthname (aref calendar-coptic-month-name-array (1- m))) |
| 125 | (day (int-to-string (calendar-extract-day coptic-date))) | 125 | (day (number-to-string (calendar-extract-day coptic-date))) |
| 126 | (dayname nil) | 126 | (dayname nil) |
| 127 | (month (int-to-string m)) | 127 | (month (number-to-string m)) |
| 128 | (year (int-to-string y))) | 128 | (year (number-to-string y))) |
| 129 | (mapconcat 'eval calendar-date-display-form ""))))) | 129 | (mapconcat 'eval calendar-date-display-form ""))))) |
| 130 | 130 | ||
| 131 | ;;;###cal-autoload | 131 | ;;;###cal-autoload |
| @@ -147,7 +147,7 @@ Reads a year, month, and day." | |||
| 147 | (year (calendar-read | 147 | (year (calendar-read |
| 148 | (format "%s calendar year (>0): " calendar-coptic-name) | 148 | (format "%s calendar year (>0): " calendar-coptic-name) |
| 149 | (lambda (x) (> x 0)) | 149 | (lambda (x) (> x 0)) |
| 150 | (int-to-string | 150 | (number-to-string |
| 151 | (calendar-extract-year | 151 | (calendar-extract-year |
| 152 | (calendar-coptic-from-absolute | 152 | (calendar-coptic-from-absolute |
| 153 | (calendar-absolute-from-gregorian today)))))) | 153 | (calendar-absolute-from-gregorian today)))))) |
diff --git a/lisp/calendar/cal-french.el b/lisp/calendar/cal-french.el index e337ffc81da..322e60f4a3a 100644 --- a/lisp/calendar/cal-french.el +++ b/lisp/calendar/cal-french.el | |||
| @@ -213,7 +213,7 @@ Echo French Revolutionary date unless NOECHO is non-nil." | |||
| 213 | "Année de la Révolution (>0): " | 213 | "Année de la Révolution (>0): " |
| 214 | "Anne'e de la Re'volution (>0): ") | 214 | "Anne'e de la Re'volution (>0): ") |
| 215 | (lambda (x) (> x 0)) | 215 | (lambda (x) (> x 0)) |
| 216 | (int-to-string | 216 | (number-to-string |
| 217 | (calendar-extract-year | 217 | (calendar-extract-year |
| 218 | (calendar-french-from-absolute | 218 | (calendar-french-from-absolute |
| 219 | (calendar-absolute-from-gregorian | 219 | (calendar-absolute-from-gregorian |
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el index f51c8fae6db..bf4c3929fc1 100644 --- a/lisp/calendar/cal-hebrew.el +++ b/lisp/calendar/cal-hebrew.el | |||
| @@ -242,7 +242,7 @@ Reads a year, month, and day." | |||
| 242 | (year (calendar-read | 242 | (year (calendar-read |
| 243 | "Hebrew calendar year (>3760): " | 243 | "Hebrew calendar year (>3760): " |
| 244 | (lambda (x) (> x 3760)) | 244 | (lambda (x) (> x 3760)) |
| 245 | (int-to-string | 245 | (number-to-string |
| 246 | (calendar-extract-year | 246 | (calendar-extract-year |
| 247 | (calendar-hebrew-from-absolute | 247 | (calendar-hebrew-from-absolute |
| 248 | (calendar-absolute-from-gregorian today)))))) | 248 | (calendar-absolute-from-gregorian today)))))) |
| @@ -738,7 +738,7 @@ from the cursor position." | |||
| 738 | (year (calendar-read | 738 | (year (calendar-read |
| 739 | "Year of death (>0): " | 739 | "Year of death (>0): " |
| 740 | (lambda (x) (> x 0)) | 740 | (lambda (x) (> x 0)) |
| 741 | (int-to-string (calendar-extract-year today)))) | 741 | (number-to-string (calendar-extract-year today)))) |
| 742 | (month-array calendar-month-name-array) | 742 | (month-array calendar-month-name-array) |
| 743 | (completion-ignore-case t) | 743 | (completion-ignore-case t) |
| 744 | (month (cdr (assoc-string | 744 | (month (cdr (assoc-string |
| @@ -757,7 +757,7 @@ from the cursor position." | |||
| 757 | (format "Starting year of Yahrzeit table (>%d): " | 757 | (format "Starting year of Yahrzeit table (>%d): " |
| 758 | death-year) | 758 | death-year) |
| 759 | (lambda (x) (> x death-year)) | 759 | (lambda (x) (> x death-year)) |
| 760 | (int-to-string (1+ death-year)))) | 760 | (number-to-string (1+ death-year)))) |
| 761 | (end-year (calendar-read | 761 | (end-year (calendar-read |
| 762 | (format "Ending year of Yahrzeit table (>=%d): " | 762 | (format "Ending year of Yahrzeit table (>=%d): " |
| 763 | start-year) | 763 | start-year) |
diff --git a/lisp/calendar/cal-islam.el b/lisp/calendar/cal-islam.el index e88aa3c04d5..ed0a8ff083c 100644 --- a/lisp/calendar/cal-islam.el +++ b/lisp/calendar/cal-islam.el | |||
| @@ -153,7 +153,7 @@ Reads a year, month, and day." | |||
| 153 | (year (calendar-read | 153 | (year (calendar-read |
| 154 | "Islamic calendar year (>0): " | 154 | "Islamic calendar year (>0): " |
| 155 | (lambda (x) (> x 0)) | 155 | (lambda (x) (> x 0)) |
| 156 | (int-to-string | 156 | (number-to-string |
| 157 | (calendar-extract-year | 157 | (calendar-extract-year |
| 158 | (calendar-islamic-from-absolute | 158 | (calendar-islamic-from-absolute |
| 159 | (calendar-absolute-from-gregorian today)))))) | 159 | (calendar-absolute-from-gregorian today)))))) |
diff --git a/lisp/calendar/cal-iso.el b/lisp/calendar/cal-iso.el index 1938ed9178f..efbcd30401f 100644 --- a/lisp/calendar/cal-iso.el +++ b/lisp/calendar/cal-iso.el | |||
| @@ -102,7 +102,7 @@ taken to be 1)." | |||
| 102 | (let* ((year (calendar-read | 102 | (let* ((year (calendar-read |
| 103 | "ISO calendar year (>0): " | 103 | "ISO calendar year (>0): " |
| 104 | (lambda (x) (> x 0)) | 104 | (lambda (x) (> x 0)) |
| 105 | (int-to-string (calendar-extract-year | 105 | (number-to-string (calendar-extract-year |
| 106 | (calendar-current-date))))) | 106 | (calendar-current-date))))) |
| 107 | (no-weeks (calendar-extract-month | 107 | (no-weeks (calendar-extract-month |
| 108 | (calendar-iso-from-absolute | 108 | (calendar-iso-from-absolute |
diff --git a/lisp/calendar/cal-julian.el b/lisp/calendar/cal-julian.el index dcfca5efc04..55757daa467 100644 --- a/lisp/calendar/cal-julian.el +++ b/lisp/calendar/cal-julian.el | |||
| @@ -106,7 +106,7 @@ Driven by the variable `calendar-date-display-form'." | |||
| 106 | (year (calendar-read | 106 | (year (calendar-read |
| 107 | "Julian calendar year (>0): " | 107 | "Julian calendar year (>0): " |
| 108 | (lambda (x) (> x 0)) | 108 | (lambda (x) (> x 0)) |
| 109 | (int-to-string | 109 | (number-to-string |
| 110 | (calendar-extract-year | 110 | (calendar-extract-year |
| 111 | (calendar-julian-from-absolute | 111 | (calendar-julian-from-absolute |
| 112 | (calendar-absolute-from-gregorian | 112 | (calendar-absolute-from-gregorian |
| @@ -170,7 +170,7 @@ nil if it is not visible in the current calendar window." | |||
| 170 | (defun calendar-astro-date-string (&optional date) | 170 | (defun calendar-astro-date-string (&optional date) |
| 171 | "String of astronomical (Julian) day number after noon UTC of Gregorian DATE. | 171 | "String of astronomical (Julian) day number after noon UTC of Gregorian DATE. |
| 172 | Defaults to today's date if DATE is not given." | 172 | Defaults to today's date if DATE is not given." |
| 173 | (int-to-string | 173 | (number-to-string |
| 174 | (ceiling | 174 | (ceiling |
| 175 | (calendar-astro-from-absolute | 175 | (calendar-astro-from-absolute |
| 176 | (calendar-absolute-from-gregorian (or date (calendar-current-date))))))) | 176 | (calendar-absolute-from-gregorian (or date (calendar-current-date))))))) |
diff --git a/lisp/calendar/cal-move.el b/lisp/calendar/cal-move.el index ba0e8ee8b8d..cd59ed7ff28 100644 --- a/lisp/calendar/cal-move.el +++ b/lisp/calendar/cal-move.el | |||
| @@ -365,7 +365,7 @@ Negative DAY counts backward from end of year." | |||
| 365 | (let* ((year (calendar-read | 365 | (let* ((year (calendar-read |
| 366 | "Year (>0): " | 366 | "Year (>0): " |
| 367 | (lambda (x) (> x 0)) | 367 | (lambda (x) (> x 0)) |
| 368 | (int-to-string (calendar-extract-year | 368 | (number-to-string (calendar-extract-year |
| 369 | (calendar-current-date))))) | 369 | (calendar-current-date))))) |
| 370 | (last (if (calendar-leap-year-p year) 366 365)) | 370 | (last (if (calendar-leap-year-p year) 366 365)) |
| 371 | (day (calendar-read | 371 | (day (calendar-read |
diff --git a/lisp/calendar/cal-persia.el b/lisp/calendar/cal-persia.el index 3723157a8b0..316ff3a38a8 100644 --- a/lisp/calendar/cal-persia.el +++ b/lisp/calendar/cal-persia.el | |||
| @@ -152,9 +152,9 @@ Gregorian date Sunday, December 31, 1 BC." | |||
| 152 | (y (calendar-extract-year persian-date)) | 152 | (y (calendar-extract-year persian-date)) |
| 153 | (m (calendar-extract-month persian-date)) | 153 | (m (calendar-extract-month persian-date)) |
| 154 | (monthname (aref calendar-persian-month-name-array (1- m))) | 154 | (monthname (aref calendar-persian-month-name-array (1- m))) |
| 155 | (day (int-to-string (calendar-extract-day persian-date))) | 155 | (day (number-to-string (calendar-extract-day persian-date))) |
| 156 | (year (int-to-string y)) | 156 | (year (number-to-string y)) |
| 157 | (month (int-to-string m)) | 157 | (month (number-to-string m)) |
| 158 | dayname) | 158 | dayname) |
| 159 | (mapconcat 'eval calendar-date-display-form ""))) | 159 | (mapconcat 'eval calendar-date-display-form ""))) |
| 160 | 160 | ||
| @@ -174,7 +174,7 @@ Reads a year, month, and day." | |||
| 174 | (let* ((year (calendar-read | 174 | (let* ((year (calendar-read |
| 175 | "Persian calendar year (not 0): " | 175 | "Persian calendar year (not 0): " |
| 176 | (lambda (x) (not (zerop x))) | 176 | (lambda (x) (not (zerop x))) |
| 177 | (int-to-string | 177 | (number-to-string |
| 178 | (calendar-extract-year | 178 | (calendar-extract-year |
| 179 | (calendar-persian-from-absolute | 179 | (calendar-persian-from-absolute |
| 180 | (calendar-absolute-from-gregorian | 180 | (calendar-absolute-from-gregorian |
diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el index 51da0b8324e..c75231e4ace 100644 --- a/lisp/calendar/cal-tex.el +++ b/lisp/calendar/cal-tex.el | |||
| @@ -1102,7 +1102,7 @@ The calendar shows holiday and diary entries if | |||
| 1102 | (insert "\\rightday") | 1102 | (insert "\\rightday") |
| 1103 | (insert "\\leftday")) | 1103 | (insert "\\leftday")) |
| 1104 | (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) | 1104 | (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) |
| 1105 | (cal-tex-arg (int-to-string (calendar-extract-day date))) | 1105 | (cal-tex-arg (number-to-string (calendar-extract-day date))) |
| 1106 | (cal-tex-arg (cal-tex-latexify-list diary-list date)) | 1106 | (cal-tex-arg (cal-tex-latexify-list diary-list date)) |
| 1107 | (cal-tex-arg (cal-tex-latexify-list holidays date)) | 1107 | (cal-tex-arg (cal-tex-latexify-list holidays date)) |
| 1108 | (cal-tex-arg (eval cal-tex-daily-string)) | 1108 | (cal-tex-arg (eval cal-tex-daily-string)) |
| @@ -1202,7 +1202,7 @@ if `cal-tex-holidays' and `cal-tex-diary', respectively, are non-nil." | |||
| 1202 | (dotimes (jdummy 3) | 1202 | (dotimes (jdummy 3) |
| 1203 | (insert "\\leftday") | 1203 | (insert "\\leftday") |
| 1204 | (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) | 1204 | (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) |
| 1205 | (cal-tex-arg (int-to-string (calendar-extract-day date))) | 1205 | (cal-tex-arg (number-to-string (calendar-extract-day date))) |
| 1206 | (cal-tex-arg (cal-tex-latexify-list diary-list date)) | 1206 | (cal-tex-arg (cal-tex-latexify-list diary-list date)) |
| 1207 | (cal-tex-arg (cal-tex-latexify-list holidays date)) | 1207 | (cal-tex-arg (cal-tex-latexify-list holidays date)) |
| 1208 | (cal-tex-arg (eval cal-tex-daily-string)) | 1208 | (cal-tex-arg (eval cal-tex-daily-string)) |
| @@ -1233,7 +1233,7 @@ if `cal-tex-holidays' and `cal-tex-diary', respectively, are non-nil." | |||
| 1233 | (dotimes (jdummy 2) | 1233 | (dotimes (jdummy 2) |
| 1234 | (insert "\\rightday") | 1234 | (insert "\\rightday") |
| 1235 | (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) | 1235 | (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) |
| 1236 | (cal-tex-arg (int-to-string (calendar-extract-day date))) | 1236 | (cal-tex-arg (number-to-string (calendar-extract-day date))) |
| 1237 | (cal-tex-arg (cal-tex-latexify-list diary-list date)) | 1237 | (cal-tex-arg (cal-tex-latexify-list diary-list date)) |
| 1238 | (cal-tex-arg (cal-tex-latexify-list holidays date)) | 1238 | (cal-tex-arg (cal-tex-latexify-list holidays date)) |
| 1239 | (cal-tex-arg (eval cal-tex-daily-string)) | 1239 | (cal-tex-arg (eval cal-tex-daily-string)) |
| @@ -1242,7 +1242,7 @@ if `cal-tex-holidays' and `cal-tex-diary', respectively, are non-nil." | |||
| 1242 | (dotimes (jdummy 2) | 1242 | (dotimes (jdummy 2) |
| 1243 | (insert "\\weekend") | 1243 | (insert "\\weekend") |
| 1244 | (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) | 1244 | (cal-tex-arg (cal-tex-LaTeXify-string (calendar-day-name date))) |
| 1245 | (cal-tex-arg (int-to-string (calendar-extract-day date))) | 1245 | (cal-tex-arg (number-to-string (calendar-extract-day date))) |
| 1246 | (cal-tex-arg (cal-tex-latexify-list diary-list date)) | 1246 | (cal-tex-arg (cal-tex-latexify-list diary-list date)) |
| 1247 | (cal-tex-arg (cal-tex-latexify-list holidays date)) | 1247 | (cal-tex-arg (cal-tex-latexify-list holidays date)) |
| 1248 | (cal-tex-arg (eval cal-tex-daily-string)) | 1248 | (cal-tex-arg (eval cal-tex-daily-string)) |
| @@ -1488,7 +1488,7 @@ Optional string COLSEP gives the column separation (default \"1mm\")." | |||
| 1488 | "\\multicolumn{7}{c}{" | 1488 | "\\multicolumn{7}{c}{" |
| 1489 | (cal-tex-month-name month) | 1489 | (cal-tex-month-name month) |
| 1490 | " " | 1490 | " " |
| 1491 | (int-to-string year) | 1491 | (number-to-string year) |
| 1492 | "}\\\\[1mm]\n"))) | 1492 | "}\\\\[1mm]\n"))) |
| 1493 | (dotimes (i 7) | 1493 | (dotimes (i 7) |
| 1494 | (setq str | 1494 | (setq str |
| @@ -1504,7 +1504,7 @@ Optional string COLSEP gives the column separation (default \"1mm\")." | |||
| 1504 | (dotimes (idummy blank-days) | 1504 | (dotimes (idummy blank-days) |
| 1505 | (setq str (concat str " & "))) | 1505 | (setq str (concat str " & "))) |
| 1506 | (dotimes (i last) | 1506 | (dotimes (i last) |
| 1507 | (setq str (concat str (int-to-string (1+ i))) | 1507 | (setq str (concat str (number-to-string (1+ i))) |
| 1508 | str (concat str (if (zerop (mod (+ i 1 blank-days) 7)) | 1508 | str (concat str (if (zerop (mod (+ i 1 blank-days) 7)) |
| 1509 | (if (= i (1- last)) | 1509 | (if (= i (1- last)) |
| 1510 | "" | 1510 | "" |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 8e8942feeea..fd2ac255498 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -2258,7 +2258,7 @@ If optional NODAY is t, does not ask for day, but just returns | |||
| 2258 | (let* ((year (calendar-read | 2258 | (let* ((year (calendar-read |
| 2259 | "Year (>0): " | 2259 | "Year (>0): " |
| 2260 | (lambda (x) (> x 0)) | 2260 | (lambda (x) (> x 0)) |
| 2261 | (int-to-string (calendar-extract-year | 2261 | (number-to-string (calendar-extract-year |
| 2262 | (calendar-current-date))))) | 2262 | (calendar-current-date))))) |
| 2263 | (month-array calendar-month-name-array) | 2263 | (month-array calendar-month-name-array) |
| 2264 | (completion-ignore-case t) | 2264 | (completion-ignore-case t) |
| @@ -2536,9 +2536,9 @@ name of the day of the week." | |||
| 2536 | (let* ((dayname (unless nodayname (calendar-day-name date abbreviate))) | 2536 | (let* ((dayname (unless nodayname (calendar-day-name date abbreviate))) |
| 2537 | (month (calendar-extract-month date)) | 2537 | (month (calendar-extract-month date)) |
| 2538 | (monthname (calendar-month-name month abbreviate)) | 2538 | (monthname (calendar-month-name month abbreviate)) |
| 2539 | (day (int-to-string (calendar-extract-day date))) | 2539 | (day (number-to-string (calendar-extract-day date))) |
| 2540 | (month (int-to-string month)) | 2540 | (month (number-to-string month)) |
| 2541 | (year (int-to-string (calendar-extract-year date)))) | 2541 | (year (number-to-string (calendar-extract-year date)))) |
| 2542 | (mapconcat 'eval calendar-date-display-form ""))) | 2542 | (mapconcat 'eval calendar-date-display-form ""))) |
| 2543 | 2543 | ||
| 2544 | (defun calendar-dayname-on-or-before (dayname date) | 2544 | (defun calendar-dayname-on-or-before (dayname date) |
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el index b2fc745c143..dd3f5d50ffc 100644 --- a/lisp/calendar/holidays.el +++ b/lisp/calendar/holidays.el | |||
| @@ -33,6 +33,7 @@ | |||
| 33 | (require 'calendar) | 33 | (require 'calendar) |
| 34 | (require 'hol-loaddefs) | 34 | (require 'hol-loaddefs) |
| 35 | 35 | ||
| 36 | ;; FIXME name that makes sense | ||
| 36 | ;;;###diary-autoload | 37 | ;;;###diary-autoload |
| 37 | (defun calendar-holiday-list () | 38 | (defun calendar-holiday-list () |
| 38 | "Form the list of holidays that occur on dates in the calendar window. | 39 | "Form the list of holidays that occur on dates in the calendar window. |
| @@ -54,6 +55,7 @@ The holidays are those in the list `calendar-holidays'." | |||
| 54 | (defvar displayed-month) ; from calendar-generate | 55 | (defvar displayed-month) ; from calendar-generate |
| 55 | (defvar displayed-year) | 56 | (defvar displayed-year) |
| 56 | 57 | ||
| 58 | ;; FIXME name that makes sense | ||
| 57 | ;;;###cal-autoload | 59 | ;;;###cal-autoload |
| 58 | (defun calendar-list-holidays () | 60 | (defun calendar-list-holidays () |
| 59 | "Create a buffer containing the holidays for the current calendar window. | 61 | "Create a buffer containing the holidays for the current calendar window. |
| @@ -128,13 +130,13 @@ The optional LABEL is used to label the buffer created." | |||
| 128 | (let* ((start-year (calendar-read | 130 | (let* ((start-year (calendar-read |
| 129 | "Starting year of holidays (>0): " | 131 | "Starting year of holidays (>0): " |
| 130 | (lambda (x) (> x 0)) | 132 | (lambda (x) (> x 0)) |
| 131 | (int-to-string (calendar-extract-year | 133 | (number-to-string (calendar-extract-year |
| 132 | (calendar-current-date))))) | 134 | (calendar-current-date))))) |
| 133 | (end-year (calendar-read | 135 | (end-year (calendar-read |
| 134 | (format "Ending year (inclusive) of holidays (>=%s): " | 136 | (format "Ending year (inclusive) of holidays (>=%s): " |
| 135 | start-year) | 137 | start-year) |
| 136 | (lambda (x) (>= x start-year)) | 138 | (lambda (x) (>= x start-year)) |
| 137 | (int-to-string start-year))) | 139 | (number-to-string start-year))) |
| 138 | (completion-ignore-case t) | 140 | (completion-ignore-case t) |
| 139 | (lists | 141 | (lists |
| 140 | (list | 142 | (list |
| @@ -235,6 +237,7 @@ The holidays are those in the list `calendar-holidays'." | |||
| 235 | (insert (mapconcat 'identity holiday-list "\n"))) | 237 | (insert (mapconcat 'identity holiday-list "\n"))) |
| 236 | (message "Checking holidays...done"))))) | 238 | (message "Checking holidays...done"))))) |
| 237 | 239 | ||
| 240 | ;; FIXME move to calendar? | ||
| 238 | ;;;###cal-autoload | 241 | ;;;###cal-autoload |
| 239 | (defun calendar-mark-holidays () | 242 | (defun calendar-mark-holidays () |
| 240 | "Mark notable days in the calendar window." | 243 | "Mark notable days in the calendar window." |