]> git.eshelyaron.com Git - emacs.git/commitdiff
Use new form of calendar-read-date.
authorEdward M. Reingold <reingold@emr.cs.iit.edu>
Wed, 26 Oct 1994 15:31:27 +0000 (15:31 +0000)
committerEdward M. Reingold <reingold@emr.cs.iit.edu>
Wed, 26 Oct 1994 15:31:27 +0000 (15:31 +0000)
lisp/calendar/holidays.el

index 2500b60787f3eeb0a4991554e2c4d8a68eeddc23..a933b77bea2c21ab9c67ee9f5bb7882e2ee12de8 100644 (file)
@@ -61,25 +61,11 @@ This function is suitable for execution in a .emacs file."
   (interactive "P")
   (save-excursion
     (let* ((completion-ignore-case t)
-           (date (calendar-current-date))
-           (displayed-month
-            (if arg
-                (cdr (assoc
-                      (capitalize
-                       (completing-read
-                        "Month name: "
-                        (mapcar 'list (append calendar-month-name-array nil))
-                        nil t))
-                      (calendar-make-alist calendar-month-name-array)))
-              (extract-calendar-month date)))
-           (displayed-year
-            (if arg
-                (calendar-read
-                 "Year (>0): "
-                 '(lambda (x) (> x 0))
-                 (int-to-string
-                  (extract-calendar-year (calendar-current-date))))
-              (extract-calendar-year date))))
+           (date (if arg
+                     (calendar-read-date t)
+                   (calendar-current-date)))
+           (displayed-month (extract-calendar-month date))
+           (displayed-year (extract-calendar-year date)))
       (list-calendar-holidays))))
 
 (defun check-calendar-holidays (date)