aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-10-06 02:36:35 +0000
committerGlenn Morris2009-10-06 02:36:35 +0000
commit00169eb6835a00ca198aea8d3d6816d6dda5e4c0 (patch)
tree9f7b14efbf508befc0825b4c3fdcd6e264978293
parent828821887bd26033b4eef18d5ff03cf49aa09a0b (diff)
downloademacs-00169eb6835a00ca198aea8d3d6816d6dda5e4c0.tar.gz
emacs-00169eb6835a00ca198aea8d3d6816d6dda5e4c0.zip
Matthew Junker <matthew.junker at sbcglobal.net> (tiny change)
(cal-tex-cursor-month-landscape) (cal-tex-cursor-month): Correctly increment the end date for diary and holiday listing. (Bug#4626)
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/calendar/cal-tex.el28
2 files changed, 20 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5523ec162d6..2c717974404 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12009-10-06 Matthew Junker <matthew.junker@sbcglobal.net> (tiny change)
2
3 * calendar/cal-tex.el (cal-tex-cursor-month-landscape)
4 (cal-tex-cursor-month): Correctly increment the end date for diary and
5 holiday listing. (Bug#4626)
6
12009-10-05 Stefan Monnier <monnier@iro.umontreal.ca> 72009-10-05 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * help-fns.el (describe-function-1): Don't burp is the function is not 9 * help-fns.el (describe-function-1): Don't burp is the function is not
diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el
index 829844b3ec1..171eabdf3de 100644
--- a/lisp/calendar/cal-tex.el
+++ b/lisp/calendar/cal-tex.el
@@ -439,13 +439,13 @@ Optional EVENT indicates a buffer position to use instead of point."
439 (end-year year) 439 (end-year year)
440 (cal-tex-which-days '(0 1 2 3 4 5 6)) 440 (cal-tex-which-days '(0 1 2 3 4 5 6))
441 (d1 (calendar-absolute-from-gregorian (list month 1 year))) 441 (d1 (calendar-absolute-from-gregorian (list month 1 year)))
442 (d2 (calendar-absolute-from-gregorian 442 (d2 (progn
443 (list end-month 443 (calendar-increment-month end-month end-year (1- n))
444 (calendar-last-day-of-month end-month end-year) 444 (calendar-absolute-from-gregorian
445 end-year))) 445 (list end-month
446 (diary-list (progn 446 (calendar-last-day-of-month end-month end-year)
447 (calendar-increment-month end-month end-year (1- n)) 447 end-year))))
448 (if cal-tex-diary (cal-tex-list-diary-entries d1 d2)))) 448 (diary-list (if cal-tex-diary (cal-tex-list-diary-entries d1 d2)))
449 (holidays (if cal-tex-holidays (cal-tex-list-holidays d1 d2))) 449 (holidays (if cal-tex-holidays (cal-tex-list-holidays d1 d2)))
450 other-month other-year small-months-at-start) 450 other-month other-year small-months-at-start)
451 (cal-tex-insert-preamble (cal-tex-number-weeks month year 1) t "12pt") 451 (cal-tex-insert-preamble (cal-tex-number-weeks month year 1) t "12pt")
@@ -508,13 +508,13 @@ indicates a buffer position to use instead of point."
508 (end-month month) 508 (end-month month)
509 (end-year year) 509 (end-year year)
510 (d1 (calendar-absolute-from-gregorian (list month 1 year))) 510 (d1 (calendar-absolute-from-gregorian (list month 1 year)))
511 (d2 (calendar-absolute-from-gregorian 511 (d2 (progn
512 (list end-month 512 (calendar-increment-month end-month end-year (1- n))
513 (calendar-last-day-of-month end-month end-year) 513 (calendar-absolute-from-gregorian
514 end-year))) 514 (list end-month
515 (diary-list (progn 515 (calendar-last-day-of-month end-month end-year)
516 (calendar-increment-month end-month end-year (1- n)) 516 end-year))))
517 (if cal-tex-diary (cal-tex-list-diary-entries d1 d2)))) 517 (diary-list (if cal-tex-diary (cal-tex-list-diary-entries d1 d2)))
518 (holidays (if cal-tex-holidays (cal-tex-list-holidays d1 d2))) 518 (holidays (if cal-tex-holidays (cal-tex-list-holidays d1 d2)))
519 other-month other-year) 519 other-month other-year)
520 (cal-tex-insert-preamble (cal-tex-number-weeks month year n) nil "12pt") 520 (cal-tex-insert-preamble (cal-tex-number-weeks month year n) nil "12pt")