aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-04-04 04:38:58 +0000
committerGlenn Morris2008-04-04 04:38:58 +0000
commit1c76c939fb205edd5e473cab6f6e747c9137773b (patch)
treeb186554828d2edbc8396e3f0db057021ea62ea1c
parentc09dffbe5bf2ffdb45b6ad33ee4ce6cac25a5962 (diff)
downloademacs-1c76c939fb205edd5e473cab6f6e747c9137773b.tar.gz
emacs-1c76c939fb205edd5e473cab6f6e747c9137773b.zip
Update for calendar.el name changes.
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/calendar/cal-bahai.el4
-rw-r--r--lisp/calendar/cal-hebrew.el12
-rw-r--r--lisp/calendar/holidays.el4
4 files changed, 26 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cf5a79abbea..8cd6097c9e2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,19 @@
12008-04-04 Glenn Morris <rgm@gnu.org>
2
3 * calendar/calendar.el (calendar-hebrew-all-holidays-flag):
4 Rename all-hebrew-calendar-holidays. Update callers, keep old name
5 as alias.
6 (calendar-christian-all-holidays-flag): Rename
7 all-christian-calendar-holidays. Update callers, keep old name as
8 alias.
9 (calendar-islamic-all-holidays-flag): Rename
10 all-islamic-calendar-holidays. Update callers, keep old name as
11 alias.
12 (calendar-bahai-all-holidays-flag): Rename all-bahai-calendar-holidays.
13 Update callers, keep old name as alias.
14 * calendar/cal-bahai.el, calendar/cal-hebrew.el, calendar/holidays.el:
15 Update for the above name changes.
16
12008-04-04 Juanma Barranquero <lekktu@gmail.com> 172008-04-04 Juanma Barranquero <lekktu@gmail.com>
2 18
3 * hilit-chg.el (global-highlight-changes-mode) 19 * hilit-chg.el (global-highlight-changes-mode)
diff --git a/lisp/calendar/cal-bahai.el b/lisp/calendar/cal-bahai.el
index ad72c852579..bdc4b5b8142 100644
--- a/lisp/calendar/cal-bahai.el
+++ b/lisp/calendar/cal-bahai.el
@@ -239,12 +239,12 @@ nil if it is not visible in the current calendar window."
239(defun holiday-bahai-ridvan (&optional all) 239(defun holiday-bahai-ridvan (&optional all)
240 "Holidays related to Ridvan, as visible in the calendar window. 240 "Holidays related to Ridvan, as visible in the calendar window.
241Only considers the first, ninth, and twelfth days, unless ALL or 241Only considers the first, ninth, and twelfth days, unless ALL or
242`all-bahai-calendar-holidays' is non-nil." 242`calendar-bahai-all-holidays-flag' is non-nil."
243 (let ((ord ["First" "Second" "Third" "Fourth" "Fifth" "Sixth" 243 (let ((ord ["First" "Second" "Third" "Fourth" "Fifth" "Sixth"
244 "Seventh" "Eighth" "Ninth" "Tenth" "Eleventh" "Twelfth"]) 244 "Seventh" "Eighth" "Ninth" "Tenth" "Eleventh" "Twelfth"])
245 (show '(0 8 11)) 245 (show '(0 8 11))
246 rid h) 246 rid h)
247 (if (or all all-bahai-calendar-holidays) 247 (if (or all calendar-bahai-all-holidays-flag)
248 (setq show (number-sequence 0 11))) 248 (setq show (number-sequence 0 11)))
249 ;; More trouble than it was worth...? 249 ;; More trouble than it was worth...?
250 (dolist (i show (nreverse rid)) 250 (dolist (i show (nreverse rid))
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el
index 4bbc9f78a73..cde2750a039 100644
--- a/lisp/calendar/cal-hebrew.el
+++ b/lisp/calendar/cal-hebrew.el
@@ -325,7 +325,7 @@ nil if it is not visible in the current calendar window."
325;;;###holiday-autoload 325;;;###holiday-autoload
326(defun holiday-rosh-hashanah-etc (&optional all) 326(defun holiday-rosh-hashanah-etc (&optional all)
327 "List of dates related to Rosh Hashanah, as visible in calendar window. 327 "List of dates related to Rosh Hashanah, as visible in calendar window.
328Shows only the major holidays, unless `all-hebrew-calendar-holidays' 328Shows only the major holidays, unless `calendar-hebrew-all-holidays-flag'
329or ALL is non-nil." 329or ALL is non-nil."
330 (when (memq displayed-month '(8 9 10 11)) 330 (when (memq displayed-month '(8 9 10 11))
331 (let ((abs-r-h (calendar-absolute-from-hebrew 331 (let ((abs-r-h (calendar-absolute-from-hebrew
@@ -343,7 +343,7 @@ or ALL is non-nil."
343 "Shemini Atzeret") 343 "Shemini Atzeret")
344 (list (calendar-gregorian-from-absolute (+ abs-r-h 22)) 344 (list (calendar-gregorian-from-absolute (+ abs-r-h 22))
345 "Simchat Torah")) 345 "Simchat Torah"))
346 (when (or all all-hebrew-calendar-holidays) 346 (when (or all calendar-hebrew-all-holidays-flag)
347 (list 347 (list
348 (list (calendar-gregorian-from-absolute 348 (list (calendar-gregorian-from-absolute
349 (calendar-dayname-on-or-before 6 (- abs-r-h 4))) 349 (calendar-dayname-on-or-before 6 (- abs-r-h 4)))
@@ -378,7 +378,7 @@ or ALL is non-nil."
378;;;###holiday-autoload 378;;;###holiday-autoload
379(defun holiday-hanukkah (&optional all) 379(defun holiday-hanukkah (&optional all)
380 "List of dates related to Hanukkah, as visible in calendar window. 380 "List of dates related to Hanukkah, as visible in calendar window.
381Shows only Hanukkah, unless `all-hebrew-calendar-holidays' or ALL 381Shows only Hanukkah, unless `calendar-hebrew-all-holidays-flag' or ALL
382is non-nil." 382is non-nil."
383 ;; This test is only to speed things up a bit, it works fine without it. 383 ;; This test is only to speed things up a bit, it works fine without it.
384 (when (memq displayed-month '(10 11 12 1 2)) 384 (when (memq displayed-month '(10 11 12 1 2))
@@ -395,7 +395,7 @@ is non-nil."
395 "seventh" "eighth"]) 395 "seventh" "eighth"])
396 han) 396 han)
397 (holiday-filter-visible-calendar 397 (holiday-filter-visible-calendar
398 (if (or all all-hebrew-calendar-holidays) 398 (if (or all calendar-hebrew-all-holidays-flag)
399 (append 399 (append
400 (list 400 (list
401 (list (calendar-gregorian-from-absolute (1- abs-h)) 401 (list (calendar-gregorian-from-absolute (1- abs-h))
@@ -410,7 +410,7 @@ is non-nil."
410;;;###holiday-autoload 410;;;###holiday-autoload
411(defun holiday-passover-etc (&optional all) 411(defun holiday-passover-etc (&optional all)
412 "List of dates related to Passover, as visible in calendar window. 412 "List of dates related to Passover, as visible in calendar window.
413Shows only the major holidays, unless `all-hebrew-calendar-holidays' 413Shows only the major holidays, unless `calendar-hebrew-all-holidays-flag'
414or ALL is non-nil." 414or ALL is non-nil."
415 (when (< displayed-month 8) 415 (when (< displayed-month 8)
416 (let ((abs-p (calendar-absolute-from-hebrew 416 (let ((abs-p (calendar-absolute-from-hebrew
@@ -422,7 +422,7 @@ or ALL is non-nil."
422 (list (calendar-gregorian-from-absolute abs-p) "Passover") 422 (list (calendar-gregorian-from-absolute abs-p) "Passover")
423 (list (calendar-gregorian-from-absolute (+ abs-p 50)) 423 (list (calendar-gregorian-from-absolute (+ abs-p 50))
424 "Shavuot")) 424 "Shavuot"))
425 (when (or all all-hebrew-calendar-holidays) 425 (when (or all calendar-hebrew-all-holidays-flag)
426 (list 426 (list
427 (list (calendar-gregorian-from-absolute 427 (list (calendar-gregorian-from-absolute
428 (calendar-dayname-on-or-before 6 (- abs-p 43))) 428 (calendar-dayname-on-or-before 6 (- abs-p 43)))
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el
index f81f2012fcf..67f53af7e51 100644
--- a/lisp/calendar/holidays.el
+++ b/lisp/calendar/holidays.el
@@ -389,7 +389,7 @@ Nth day before or after Easter.
389 389
390For backwards compatibility, if this function is called with no 390For backwards compatibility, if this function is called with no
391arguments, then it returns a list of \"standard\" Easter-related 391arguments, then it returns a list of \"standard\" Easter-related
392holidays (with more entries if `all-christian-calendar-holidays' 392holidays (with more entries if `calendar-christian-all-holidays-flag'
393is non-nil)." 393is non-nil)."
394 ;; Backwards compatibility layer. 394 ;; Backwards compatibility layer.
395 (if (not n) 395 (if (not n)
@@ -398,7 +398,7 @@ is non-nil)."
398 (apply 'holiday-easter-etc e)) 398 (apply 'holiday-easter-etc e))
399 ;; The combined list is not in order. 399 ;; The combined list is not in order.
400 (append 400 (append
401 (if all-christian-calendar-holidays 401 (if calendar-christian-all-holidays-flag
402 '((-63 "Septuagesima Sunday") 402 '((-63 "Septuagesima Sunday")
403 (-56 "Sexagesima Sunday") 403 (-56 "Sexagesima Sunday")
404 (-49 "Shrove Sunday") 404 (-49 "Shrove Sunday")