summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-02-24 23:43:12 -0500
committerKyle Meyer <kyle@kyleam.com>2021-02-25 00:20:26 -0500
commit0b117f72a82143f544ef41cc82696337d496fe97 (patch)
tree6f2358bf628aa2118a53770938cbaca91a5b9f09
parent15c73854583e500725aba56edda4f93ce45d8ccd (diff)
downloadorg-mode-0b117f72a82143f544ef41cc82696337d496fe97.tar.gz
agenda: Drop org-add-to-diary-list
* lisp/org-agenda.el (org-add-to-diary-list): Remove. (org-diary-default-entry): Use diary-add-to-list directly. org-agenda has compatibility kludges for the rename of add-to-diary-list and the number of required arguments; both are no longer needed. The fourth argument has been optional since 22.1, and add-to-diary-list was marked as obsolete in favor of diary-add-to-list in Emacs 23.1 and removed in Emacs 25.1.
-rw-r--r--lisp/org-agenda.el10
1 files changed, 1 insertions, 9 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index aef6420..bb026f7 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5275,15 +5275,7 @@ each date. It also removes lines that contain only whitespace."
Needed to avoid empty dates which mess up holiday display."
;; Catch the error if dealing with the new add-to-diary-alist
(when org-disable-agenda-to-diary
- (condition-case nil
- (org-add-to-diary-list original-date "Org mode dummy" "")
- (error
- (org-add-to-diary-list original-date "Org mode dummy" "" nil)))))
-
-(defun org-add-to-diary-list (&rest args)
- (if (fboundp 'diary-add-to-list)
- (apply 'diary-add-to-list args)
- (apply 'add-to-diary-list args)))
+ (diary-add-to-list original-date "Org mode dummy" "")))
(defvar org-diary-last-run-time nil)