diff options
| author | Richard M. Stallman | 1999-01-26 01:27:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-01-26 01:27:39 +0000 |
| commit | c0982a974096540c222e18b67eff8464f4596c4d (patch) | |
| tree | 7d4c15193fcbe2de5ced182fcc1d65284c68825c | |
| parent | 918358c9b902312bb2168c8cbd1051746cc7594c (diff) | |
| download | emacs-c0982a974096540c222e18b67eff8464f4596c4d.tar.gz emacs-c0982a974096540c222e18b67eff8464f4596c4d.zip | |
(persian-prompt-for-date): Use assoc-ignore-case and do not capitalize
when matching month and day names.
| -rw-r--r-- | lisp/calendar/cal-persia.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/calendar/cal-persia.el b/lisp/calendar/cal-persia.el index a0be1b186ed..1a92c617fbc 100644 --- a/lisp/calendar/cal-persia.el +++ b/lisp/calendar/cal-persia.el | |||
| @@ -187,14 +187,13 @@ Echo Persian date unless NOECHO is t." | |||
| 187 | (calendar-absolute-from-gregorian today)))))) | 187 | (calendar-absolute-from-gregorian today)))))) |
| 188 | (completion-ignore-case t) | 188 | (completion-ignore-case t) |
| 189 | (month (cdr (assoc | 189 | (month (cdr (assoc |
| 190 | (capitalize | ||
| 191 | (completing-read | 190 | (completing-read |
| 192 | "Persian calendar month name: " | 191 | "Persian calendar month name: " |
| 193 | (mapcar 'list | 192 | (mapcar 'list |
| 194 | (append persian-calendar-month-name-array nil)) | 193 | (append persian-calendar-month-name-array nil)) |
| 195 | nil t)) | 194 | nil t) |
| 196 | (calendar-make-alist persian-calendar-month-name-array | 195 | (calendar-make-alist persian-calendar-month-name-array |
| 197 | 1 'capitalize)))) | 196 | 1)))) |
| 198 | (last (persian-calendar-last-day-of-month month year)) | 197 | (last (persian-calendar-last-day-of-month month year)) |
| 199 | (day (calendar-read | 198 | (day (calendar-read |
| 200 | (format "Persian calendar day (1-%d): " last) | 199 | (format "Persian calendar day (1-%d): " last) |