summaryrefslogtreecommitdiff
path: root/lisp/calendar/cal-coptic.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2008-03-08 04:26:21 +0000
committerGlenn Morris <rgm@gnu.org>2008-03-08 04:26:21 +0000
commit6fd6d1d81ffd75242e704856f2879f92bd97106f (patch)
tree5a3350ddc94cf6de8ca8132b031f0f9b64de251d /lisp/calendar/cal-coptic.el
parent9081fdbc64ef21a8fef2f9f4a3c079e3bf16b3e5 (diff)
downloademacs-6fd6d1d81ffd75242e704856f2879f92bd97106f.tar.gz
(coptic-name): Add doc string.
Comments.
Diffstat (limited to 'lisp/calendar/cal-coptic.el')
-rw-r--r--lisp/calendar/cal-coptic.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/calendar/cal-coptic.el b/lisp/calendar/cal-coptic.el
index 7e81aa2a8ae..c22bc65ddc2 100644
--- a/lisp/calendar/cal-coptic.el
+++ b/lisp/calendar/cal-coptic.el
@@ -36,10 +36,10 @@
;;; Code:
-(defvar date)
-
(require 'cal-julian)
+;; Not constants because they get let-bound.
+
(defvar coptic-calendar-month-name-array
["Tut" "Babah" "Hatur" "Kiyahk" "Tubah" "Amshir" "Baramhat" "Barmundah"
"Bashans" "Baunah" "Abib" "Misra" "al-Nasi"])
@@ -47,7 +47,8 @@
(defvar coptic-calendar-epoch (calendar-absolute-from-julian '(8 29 284))
"Absolute date of start of Coptic calendar = August 29, 284 A.D. (Julian).")
-(defvar coptic-name "Coptic")
+(defvar coptic-name "Coptic"
+ "Used in some message strings.")
(defun coptic-calendar-leap-year-p (year)
"True if YEAR is a leap year on the Coptic calendar."
@@ -229,6 +230,9 @@ Echo Ethiopic date unless NOECHO is t."
(calendar-absolute-from-ethiopic date)))
(or noecho (calendar-print-ethiopic-date)))
+(defvar date)
+
+;; To be called from list-sexp-diary-entries, where DATE is bound.
(defun diary-ethiopic-date ()
"Ethiopic calendar equivalent of date diary entry."
(let ((coptic-calendar-epoch ethiopic-calendar-epoch)