aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-10 02:49:49 +0000
committerGlenn Morris2008-03-10 02:49:49 +0000
commitc3efd659285751bc0cea614f25ff7ff66f1321e1 (patch)
tree9e0c93002b0639e296017f9a3833f838782113d5
parentc9218852cf0499e0c62d3300a1d8da4016547643 (diff)
downloademacs-c3efd659285751bc0cea614f25ff7ff66f1321e1.tar.gz
emacs-c3efd659285751bc0cea614f25ff7ff66f1321e1.zip
(date, entry, number): Move declarations to where they are needed.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/calendar/cal-hebrew.el9
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 80a70f1a825..fbfa06da62f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12008-03-10 Glenn Morris <rgm@gnu.org> 12008-03-10 Glenn Morris <rgm@gnu.org>
2 2
3 * calendar/cal-hebrew.el (date, entry, number): Move declarations
4 to where they are needed.
5
3 * calendar/calendar.el (diary-file, hebrew-holidays-1) 6 * calendar/calendar.el (diary-file, hebrew-holidays-1)
4 (hebrew-holidays-2, hebrew-holidays-3, hebrew-holidays-4) 7 (hebrew-holidays-2, hebrew-holidays-3, hebrew-holidays-4)
5 (calendar, calendar-basic-setup, calendar-mode-map, calendar-set-mark) 8 (calendar, calendar-basic-setup, calendar-mode-map, calendar-set-mark)
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 @@
37 37
38;;; Code: 38;;; Code:
39 39
40(defvar date)
41(defvar displayed-month) 40(defvar displayed-month)
42(defvar displayed-year) 41(defvar displayed-year)
43(defvar entry)
44(defvar number)
45(defvar original-date) 42(defvar original-date)
46 43
47(require 'calendar) 44(require 'calendar)
@@ -509,6 +506,8 @@ nil if it is not visible in the current calendar window."
509(declare-function add-to-diary-list "diary-lib" 506(declare-function add-to-diary-list "diary-lib"
510 (date string specifier &optional marker globcolor literal)) 507 (date string specifier &optional marker globcolor literal))
511 508
509(defvar number) ; from diary-list-entries
510
512(defun list-hebrew-diary-entries () 511(defun list-hebrew-diary-entries ()
513 "Add any Hebrew date entries from the diary file to `diary-entries-list'. 512 "Add any Hebrew date entries from the diary file to `diary-entries-list'.
514Hebrew date diary entries must be prefaced by `hebrew-diary-entry-symbol' 513Hebrew date diary entries must be prefaced by `hebrew-diary-entry-symbol'
@@ -912,6 +911,8 @@ from the cursor position."
912 (display-buffer yahrzeit-buffer) 911 (display-buffer yahrzeit-buffer)
913 (message "Computing Yahrzeits...done"))) 912 (message "Computing Yahrzeits...done")))
914 913
914(defvar date)
915
915(defun diary-hebrew-date () 916(defun diary-hebrew-date ()
916 "Hebrew calendar equivalent of date diary entry." 917 "Hebrew calendar equivalent of date diary entry."
917 (format "Hebrew date (until sunset): %s" (calendar-hebrew-date-string date))) 918 (format "Hebrew date (until sunset): %s" (calendar-hebrew-date-string date)))
@@ -942,6 +943,8 @@ use when highlighting the day in the calendar."
942 (format " and %d day%s" 943 (format " and %d day%s"
943 day (if (= day 1) "" "s")))))))))) 944 day (if (= day 1) "" "s"))))))))))
944 945
946(defvar entry)
947
945(defun diary-yahrzeit (death-month death-day death-year &optional mark) 948(defun diary-yahrzeit (death-month death-day death-year &optional mark)
946 "Yahrzeit diary entry--entry applies if date is Yahrzeit or the day before. 949 "Yahrzeit diary entry--entry applies if date is Yahrzeit or the day before.
947Parameters are DEATH-MONTH, DEATH-DAY, DEATH-YEAR; the diary entry is assumed 950Parameters are DEATH-MONTH, DEATH-DAY, DEATH-YEAR; the diary entry is assumed