Mercurial > emacs
changeset 24190:77853cf5a2e5
(coptic-prompt-for-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:31:29 +0000 |
parents | c70c6c750126 |
children | 4f1b1bddae88 |
files | lisp/calendar/cal-coptic.el |
diffstat | 1 files changed, 7 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calendar/cal-coptic.el Tue Jan 26 01:30:46 1999 +0000 +++ b/lisp/calendar/cal-coptic.el Tue Jan 26 01:31:29 1999 +0000 @@ -151,15 +151,14 @@ (calendar-coptic-from-absolute (calendar-absolute-from-gregorian today)))))) (completion-ignore-case t) - (month (cdr (assoc - (capitalize - (completing-read - (format "%s calendar month name: " coptic-name) - (mapcar 'list - (append coptic-calendar-month-name-array nil)) - nil t)) + (month (cdr (assoc-ignore-case + (completing-read + (format "%s calendar month name: " coptic-name) + (mapcar 'list + (append coptic-calendar-month-name-array nil)) + nil t) (calendar-make-alist coptic-calendar-month-name-array - 1 'capitalize)))) + 1)))) (last (coptic-calendar-last-day-of-month month year)) (day (calendar-read (format "%s calendar day (1-%d): " coptic-name last)