]> git.eshelyaron.com Git - emacs.git/commitdiff
(calendar-goto-french-date): Use assoc-ignore-case and do not
authorRichard M. Stallman <rms@gnu.org>
Tue, 26 Jan 1999 01:32:11 +0000 (01:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 26 Jan 1999 01:32:11 +0000 (01:32 +0000)
capitalize when matching month and day names.

lisp/calendar/cal-french.el

index 9972f3ce22d2fbd8eef9de12dbdea59ab6e5220d..93f1e5c841f8952e3f307b3eea1bf9eb673e081e 100644 (file)
@@ -229,16 +229,12 @@ Echo French Revolutionary date unless NOECHO is t."
                                      (concat "Jour " x))
                                   special-days))))))))
            (completion-ignore-case t)
-           (month (cdr (assoc
-                        (capitalize
-                         (completing-read
-                          "Mois ou Sansculottide: "
-                          month-list
-                          nil t))
-                        (calendar-make-alist
-                         month-list
-                         1
-                         '(lambda (x) (capitalize (car x)))))))
+           (month (cdr (assoc-ignore-case
+                         (completing-read
+                          "Mois ou Sansculottide: "
+                          month-list
+                          nil t)
+                        (calendar-make-alist month-list 1 'car))))
            (decade (if (> month 12)
                        1
                      (calendar-read