diff options
| author | Richard M. Stallman | 1999-01-26 01:31:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-01-26 01:31:29 +0000 |
| commit | 50830fad6cea5086067331e78a8059806823ce3f (patch) | |
| tree | f8428af2a0f8a71fac8650c680d979e8d5720e76 | |
| parent | b5394859f200f4bd6c4bc4e7f626c557bdac5a38 (diff) | |
| download | emacs-50830fad6cea5086067331e78a8059806823ce3f.tar.gz emacs-50830fad6cea5086067331e78a8059806823ce3f.zip | |
(coptic-prompt-for-date): Use assoc-ignore-case and do not capitalize
when matching month and day names.
| -rw-r--r-- | lisp/calendar/cal-coptic.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/calendar/cal-coptic.el b/lisp/calendar/cal-coptic.el index 718688bf3bf..c43478a598a 100644 --- a/lisp/calendar/cal-coptic.el +++ b/lisp/calendar/cal-coptic.el | |||
| @@ -151,15 +151,14 @@ Echo Coptic date unless NOECHO is t." | |||
| 151 | (calendar-coptic-from-absolute | 151 | (calendar-coptic-from-absolute |
| 152 | (calendar-absolute-from-gregorian today)))))) | 152 | (calendar-absolute-from-gregorian today)))))) |
| 153 | (completion-ignore-case t) | 153 | (completion-ignore-case t) |
| 154 | (month (cdr (assoc | 154 | (month (cdr (assoc-ignore-case |
| 155 | (capitalize | 155 | (completing-read |
| 156 | (completing-read | 156 | (format "%s calendar month name: " coptic-name) |
| 157 | (format "%s calendar month name: " coptic-name) | 157 | (mapcar 'list |
| 158 | (mapcar 'list | 158 | (append coptic-calendar-month-name-array nil)) |
| 159 | (append coptic-calendar-month-name-array nil)) | 159 | nil t) |
| 160 | nil t)) | ||
| 161 | (calendar-make-alist coptic-calendar-month-name-array | 160 | (calendar-make-alist coptic-calendar-month-name-array |
| 162 | 1 'capitalize)))) | 161 | 1)))) |
| 163 | (last (coptic-calendar-last-day-of-month month year)) | 162 | (last (coptic-calendar-last-day-of-month month year)) |
| 164 | (day (calendar-read | 163 | (day (calendar-read |
| 165 | (format "%s calendar day (1-%d): " coptic-name last) | 164 | (format "%s calendar day (1-%d): " coptic-name last) |