(month-array calendar-month-name-array)
(defmon (aref month-array (1- (calendar-extract-month default-date))))
(month (cdr (assoc-string
- (let ((completion-extra-properties
- '(:category calendar-month)))
- (completing-read-case-insensitive
- (format-prompt "Month name" defmon)
- (completion-table-with-metadata
- (append month-array nil)
- '((category . calendar-month)))
- nil t nil nil defmon))
+ (completing-read-case-insensitive
+ (format-prompt "Month name" defmon)
+ (completion-table-with-metadata
+ (append month-array nil)
+ '((category . calendar-month)))
+ nil t nil nil defmon)
(calendar-make-alist month-array 1) t)))
(defday (calendar-extract-day default-date))
(last (calendar-last-day-of-month month year)))