]> git.eshelyaron.com Git - emacs.git/commitdiff
(calendar-holidays): Doc fix.
authorGlenn Morris <rgm@gnu.org>
Thu, 19 Feb 2004 01:13:56 +0000 (01:13 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 19 Feb 2004 01:13:56 +0000 (01:13 +0000)
(calendar-read-date): Use assoc-string rather than assoc-ignore-case.

lisp/calendar/calendar.el

index 7440a5c7e0212a145c6a96245fcd268138022ec1..a0644f54aa2c1ff2a627d92d4cb3e07475443edb 100644 (file)
@@ -1164,7 +1164,7 @@ example, to include American presidential elections, which occur on the first
 Tuesday after the first Monday in November of years divisible by 4, add
 
      (holiday-sexp
-       (if (zerop (% year 4))
+       '(if (zerop (% year 4))
            (calendar-gregorian-from-absolute
              (1+ (calendar-dayname-on-or-before
                    1 (+ 6 (calendar-absolute-from-gregorian
@@ -2544,12 +2544,12 @@ If optional NODAY is t, does not ask for day, but just returns
                                 (calendar-current-date)))))
          (month-array calendar-month-name-array)
          (completion-ignore-case t)
-         (month (cdr (assoc-ignore-case
+         (month (cdr (assoc-string
                        (completing-read
                         "Month name: "
                         (mapcar 'list (append month-array nil))
                         nil t)
-                      (calendar-make-alist month-array 1))))
+                      (calendar-make-alist month-array 1) t)))
          (last (calendar-last-day-of-month month year)))
     (if noday
         (if (eq noday t)