summaryrefslogtreecommitdiff
path: root/lisp/calendar/cal-hebrew.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2008-03-10 02:49:49 +0000
committerGlenn Morris <rgm@gnu.org>2008-03-10 02:49:49 +0000
commitc3efd659285751bc0cea614f25ff7ff66f1321e1 (patch)
tree9e0c93002b0639e296017f9a3833f838782113d5 /lisp/calendar/cal-hebrew.el
parentc9218852cf0499e0c62d3300a1d8da4016547643 (diff)
downloademacs-c3efd659285751bc0cea614f25ff7ff66f1321e1.tar.gz
(date, entry, number): Move declarations to where they are needed.
Diffstat (limited to 'lisp/calendar/cal-hebrew.el')
-rw-r--r--lisp/calendar/cal-hebrew.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el
index ecf0b9d3e77..284d657e9b1 100644
--- a/lisp/calendar/cal-hebrew.el
+++ b/lisp/calendar/cal-hebrew.el
@@ -37,11 +37,8 @@
;;; Code:
-(defvar date)
(defvar displayed-month)
(defvar displayed-year)
-(defvar entry)
-(defvar number)
(defvar original-date)
(require 'calendar)
@@ -509,6 +506,8 @@ nil if it is not visible in the current calendar window."
(declare-function add-to-diary-list "diary-lib"
(date string specifier &optional marker globcolor literal))
+(defvar number) ; from diary-list-entries
+
(defun list-hebrew-diary-entries ()
"Add any Hebrew date entries from the diary file to `diary-entries-list'.
Hebrew date diary entries must be prefaced by `hebrew-diary-entry-symbol'
@@ -912,6 +911,8 @@ from the cursor position."
(display-buffer yahrzeit-buffer)
(message "Computing Yahrzeits...done")))
+(defvar date)
+
(defun diary-hebrew-date ()
"Hebrew calendar equivalent of date diary entry."
(format "Hebrew date (until sunset): %s" (calendar-hebrew-date-string date)))
@@ -942,6 +943,8 @@ use when highlighting the day in the calendar."
(format " and %d day%s"
day (if (= day 1) "" "s"))))))))))
+(defvar entry)
+
(defun diary-yahrzeit (death-month death-day death-year &optional mark)
"Yahrzeit diary entry--entry applies if date is Yahrzeit or the day before.
Parameters are DEATH-MONTH, DEATH-DAY, DEATH-YEAR; the diary entry is assumed