|
@@ -5762,29 +5762,26 @@ This function is invoked if `org-agenda-todo-ignore-deadlines',
|
|
|
|
|
|
;; Calendar sanity: define some functions that are independent of
|
|
|
;; `calendar-date-style'.
|
|
|
-;; Normally I would like to use ISO format when calling the diary functions,
|
|
|
-;; but to make sure we still have Emacs 22 compatibility we bind
|
|
|
-;; also `european-calendar-style' and use european format
|
|
|
(defun org-anniversary (year month day &optional mark)
|
|
|
"Like `diary-anniversary', but with fixed (ISO) order of arguments."
|
|
|
(with-no-warnings
|
|
|
- (let ((calendar-date-style 'european) (european-calendar-style t))
|
|
|
- (diary-anniversary day month year mark))))
|
|
|
+ (let ((calendar-date-style 'iso))
|
|
|
+ (diary-anniversary year month day mark))))
|
|
|
(defun org-cyclic (N year month day &optional mark)
|
|
|
"Like `diary-cyclic', but with fixed (ISO) order of arguments."
|
|
|
(with-no-warnings
|
|
|
- (let ((calendar-date-style 'european) (european-calendar-style t))
|
|
|
- (diary-cyclic N day month year mark))))
|
|
|
+ (let ((calendar-date-style 'iso))
|
|
|
+ (diary-cyclic N year month day mark))))
|
|
|
(defun org-block (Y1 M1 D1 Y2 M2 D2 &optional mark)
|
|
|
"Like `diary-block', but with fixed (ISO) order of arguments."
|
|
|
(with-no-warnings
|
|
|
- (let ((calendar-date-style 'european) (european-calendar-style t))
|
|
|
- (diary-block D1 M1 Y1 D2 M2 Y2 mark))))
|
|
|
+ (let ((calendar-date-style 'iso))
|
|
|
+ (diary-block Y1 M1 D1 Y2 M2 D2 mark))))
|
|
|
(defun org-date (year month day &optional mark)
|
|
|
"Like `diary-date', but with fixed (ISO) order of arguments."
|
|
|
(with-no-warnings
|
|
|
- (let ((calendar-date-style 'european) (european-calendar-style t))
|
|
|
- (diary-date day month year mark))))
|
|
|
+ (let ((calendar-date-style 'iso))
|
|
|
+ (diary-date year month day mark))))
|
|
|
|
|
|
;; Define the `org-class' function
|
|
|
(defun org-class (y1 m1 d1 y2 m2 d2 dayname &rest skip-weeks)
|
|
@@ -5811,26 +5808,6 @@ then those holidays will be skipped."
|
|
|
(delq nil (mapcar (lambda(g) (member g skip-weeks)) h))))
|
|
|
entry)))
|
|
|
|
|
|
-(defun org-diary-class (m1 d1 y1 m2 d2 y2 dayname &rest skip-weeks)
|
|
|
- "Like `org-class', but honor `calendar-date-style'.
|
|
|
-The order of the first 2 times 3 arguments depends on the variable
|
|
|
-`calendar-date-style' or, if that is not defined, on `european-calendar-style'.
|
|
|
-So for American calendars, give this as MONTH DAY YEAR, for European as
|
|
|
-DAY MONTH YEAR, and for ISO as YEAR MONTH DAY.
|
|
|
-DAYNAME is a number between 0 (Sunday) and 6 (Saturday). SKIP-WEEKS
|
|
|
-is any number of ISO weeks in the block period for which the item should
|
|
|
-be skipped.
|
|
|
-
|
|
|
-This function is here only for backward compatibility and it is deprecated,
|
|
|
-please use `org-class' instead."
|
|
|
- (let* ((date1 (org-order-calendar-date-args m1 d1 y1))
|
|
|
- (date2 (org-order-calendar-date-args m2 d2 y2)))
|
|
|
- (org-class
|
|
|
- (nth 2 date1) (car date1) (nth 1 date1)
|
|
|
- (nth 2 date2) (car date2) (nth 1 date2)
|
|
|
- dayname skip-weeks)))
|
|
|
-(make-obsolete 'org-diary-class 'org-class "")
|
|
|
-
|
|
|
(defalias 'org-get-closed 'org-agenda-get-progress)
|
|
|
(defun org-agenda-get-progress ()
|
|
|
"Return the logged TODO entries for agenda display."
|