]> git.eshelyaron.com Git - emacs.git/commitdiff
* calendar.el (calendar-current-date): Use fixed assoc list for
authorEdward M. Reingold <reingold@emr.cs.iit.edu>
Tue, 1 Mar 1994 22:42:53 +0000 (22:42 +0000)
committerEdward M. Reingold <reingold@emr.cs.iit.edu>
Tue, 1 Mar 1994 22:42:53 +0000 (22:42 +0000)
month names so that changing the array of names doesn't screw up
the determination of the current date.

lisp/calendar/calendar.el

index 8aefa785b80495dc1fe3caf3d3b8c2716060a3c4..74d1c52e0a1ec539778a10c83b3f30ee81e0d749 100644 (file)
@@ -1932,10 +1932,9 @@ If in the calendar buffer, also sets the current date local variables."
          (month
           (cdr (assoc 
                 (substring date (match-beginning 2) (match-end 2))
-                (calendar-make-alist
-                 calendar-month-name-array
-                 1
-                 '(lambda (x) (substring x 0 3))))))
+                '(("Jan" . 1) ("Feb" . 2) ("Mar" . 3) ("Apr" . 4)
+                  ("May" . 5) ("Jun" . 6) ("Jul" . 7) ("Aug" . 8)
+                  ("Sep" . 9) ("Oct" . 10) ("Nov" . 11) ("Dec" . 12)))))
          (day
           (string-to-int (substring date (match-beginning 3) (match-end 3))))
          (year