aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-01-26 01:26:01 +0000
committerRichard M. Stallman1999-01-26 01:26:01 +0000
commit77cb2f4ce368454d8fced4fa8d605999ce256749 (patch)
tree1c70be53335587a78b7f0090b3af746351a4533b
parentfa5c6d7c727df61b219855019d0169fe8b523faf (diff)
downloademacs-77cb2f4ce368454d8fced4fa8d605999ce256749.tar.gz
emacs-77cb2f4ce368454d8fced4fa8d605999ce256749.zip
(calendar-goto-islamic-date)
(mark-islamic-diary-entries): Use assoc-ignore-case and do not capitalize when matching month and day names.
-rw-r--r--lisp/calendar/cal-islam.el21
1 files changed, 10 insertions, 11 deletions
diff --git a/lisp/calendar/cal-islam.el b/lisp/calendar/cal-islam.el
index 565fed387f4..1e71da77bb9 100644
--- a/lisp/calendar/cal-islam.el
+++ b/lisp/calendar/cal-islam.el
@@ -150,13 +150,12 @@ Driven by the variable `calendar-date-display-form'."
150 (calendar-absolute-from-gregorian today)))))) 150 (calendar-absolute-from-gregorian today))))))
151 (month-array calendar-islamic-month-name-array) 151 (month-array calendar-islamic-month-name-array)
152 (completion-ignore-case t) 152 (completion-ignore-case t)
153 (month (cdr (assoc 153 (month (cdr (assoc-ignore-case
154 (capitalize
155 (completing-read 154 (completing-read
156 "Islamic calendar month name: " 155 "Islamic calendar month name: "
157 (mapcar 'list (append month-array nil)) 156 (mapcar 'list (append month-array nil))
158 nil t)) 157 nil t)
159 (calendar-make-alist month-array 1 'capitalize)))) 158 (calendar-make-alist month-array 1))))
160 (last (islamic-calendar-last-day-of-month month year)) 159 (last (islamic-calendar-last-day-of-month month year))
161 (day (calendar-read 160 (day (calendar-read
162 (format "Islamic calendar day (1-%d): " last) 161 (format "Islamic calendar day (1-%d): " last)
@@ -368,17 +367,17 @@ provided for use as part of the nongregorian-diary-marking-hook."
368 (string-to-int y-str))))) 367 (string-to-int y-str)))))
369 (if dd-name 368 (if dd-name
370 (mark-calendar-days-named 369 (mark-calendar-days-named
371 (cdr (assoc (capitalize (substring dd-name 0 3)) 370 (cdr (assoc-ignore-case (substring dd-name 0 3)
372 (calendar-make-alist 371 (calendar-make-alist
373 calendar-day-name-array 372 calendar-day-name-array
374 0 373 0
375 '(lambda (x) (substring x 0 3)))))) 374 '(lambda (x) (substring x 0 3))))))
376 (if mm-name 375 (if mm-name
377 (if (string-equal mm-name "*") 376 (if (string-equal mm-name "*")
378 (setq mm 0) 377 (setq mm 0)
379 (setq mm 378 (setq mm
380 (cdr (assoc 379 (cdr (assoc-ignore-case
381 (capitalize mm-name) 380 mm-name
382 (calendar-make-alist 381 (calendar-make-alist
383 calendar-islamic-month-name-array)))))) 382 calendar-islamic-month-name-array))))))
384 (mark-islamic-calendar-date-pattern mm dd yy))))) 383 (mark-islamic-calendar-date-pattern mm dd yy)))))