Mercurial > emacs
changeset 24186:8aae7db1922c
(persian-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:27:39 +0000 |
parents | c8a68d6bcfa6 |
children | cc07d0f935d4 |
files | lisp/calendar/cal-persia.el |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calendar/cal-persia.el Tue Jan 26 01:26:54 1999 +0000 +++ b/lisp/calendar/cal-persia.el Tue Jan 26 01:27:39 1999 +0000 @@ -187,14 +187,13 @@ (calendar-absolute-from-gregorian today)))))) (completion-ignore-case t) (month (cdr (assoc - (capitalize (completing-read "Persian calendar month name: " (mapcar 'list (append persian-calendar-month-name-array nil)) - nil t)) + nil t) (calendar-make-alist persian-calendar-month-name-array - 1 'capitalize)))) + 1)))) (last (persian-calendar-last-day-of-month month year)) (day (calendar-read (format "Persian calendar day (1-%d): " last)