comparison lisp/calendar/calendar.el @ 24188:94db9f395842

(calendar-read-date): Use assoc-ignore-case and do not capitalize when matching month and day names.
author Richard M. Stallman <rms@gnu.org>
date Tue, 26 Jan 1999 01:29:43 +0000
parents 37ae25c77df0
children aa82f46ecc36
comparison
equal deleted inserted replaced
24187:cc07d0f935d4 24188:94db9f395842
2299 '(lambda (x) (> x 0)) 2299 '(lambda (x) (> x 0))
2300 (int-to-string (extract-calendar-year 2300 (int-to-string (extract-calendar-year
2301 (calendar-current-date))))) 2301 (calendar-current-date)))))
2302 (month-array calendar-month-name-array) 2302 (month-array calendar-month-name-array)
2303 (completion-ignore-case t) 2303 (completion-ignore-case t)
2304 (month (cdr (assoc 2304 (month (cdr (assoc-ignore-case
2305 (capitalize
2306 (completing-read 2305 (completing-read
2307 "Month name: " 2306 "Month name: "
2308 (mapcar 'list (append month-array nil)) 2307 (mapcar 'list (append month-array nil))
2309 nil t)) 2308 nil t)
2310 (calendar-make-alist month-array 1 'capitalize)))) 2309 (calendar-make-alist month-array 1))))
2311 (last (calendar-last-day-of-month month year))) 2310 (last (calendar-last-day-of-month month year)))
2312 (if noday 2311 (if noday
2313 (if (eq noday t) 2312 (if (eq noday t)
2314 (list month nil year) 2313 (list month nil year)
2315 (list month year)) 2314 (list month year))