summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2008-05-25 20:09:23 +0000
committerGlenn Morris <rgm@gnu.org>2008-05-25 20:09:23 +0000
commit4980d28f5a36afd0228803c9bb97de4547eff25f (patch)
tree121b855f31513ead356e5a4ff350309817ab2e87 /lisp
parent505ecc496904f64f9725c2cadc962fc1c48933bc (diff)
downloademacs-4980d28f5a36afd0228803c9bb97de4547eff25f.tar.gz
emacs-4980d28f5a36afd0228803c9bb97de4547eff25f.tar.bz2
emacs-4980d28f5a36afd0228803c9bb97de4547eff25f.zip
Ed Reingold <reingold at emr.cs.iit.edu>
(diary-hebrew-yahrzeit): Use diary-ordinal-suffix.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calendar/cal-hebrew.el6
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 169a2a769d8..fe81ecc5a84 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-25 Ed Reingold <reingold@emr.cs.iit.edu>
+
+ * calendar/cal-hebrew.el (diary-hebrew-yahrzeit):
+ Use diary-ordinal-suffix.
+
2008-05-24 Juanma Barranquero <lekktu@gmail.com>
* emacs-lisp/edebug.el (edebug-setup-hook, edebug-all-defs)
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el
index 21cd9df9011..260a6bd757a 100644
--- a/lisp/calendar/cal-hebrew.el
+++ b/lisp/calendar/cal-hebrew.el
@@ -862,10 +862,8 @@ use when highlighting the day in the calendar."
entry
(if (= y d) "" " (evening)")
diff
- (cond ((= (% diff 10) 1) "st")
- ((= (% diff 10) 2) "nd")
- ((= (% diff 10) 3) "rd")
- (t "th")))))))
+ (diary-ordinal-suffix diff))))))
+
;;;###diary-autoload
(define-obsolete-function-alias 'diary-yahrzeit 'diary-hebrew-yahrzeit "23.1")