summaryrefslogtreecommitdiff
path: root/lisp/org-expiry.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/org-expiry.el')
-rw-r--r--lisp/org-expiry.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/org-expiry.el b/lisp/org-expiry.el
index 2c7c7d8..61d061b 100644
--- a/lisp/org-expiry.el
+++ b/lisp/org-expiry.el
@@ -197,9 +197,9 @@ restart `org-mode' if necessary."
If ARG, also remove org-expiry hook in Org's `before-save-hook'
and restart `org-mode' if necessary."
(interactive "P")
- (ad-deactivate 'org-schedule)
- (ad-deactivate 'org-time-stamp)
- (ad-deactivate 'org-deadline)
+ (advice-remove 'org-schedule #'org-schedule@org-schedule-update-created)
+ (advice-remove 'org-time-stamp #'org-time-stamp@org-time-stamp-update-created)
+ (advice-remove 'org-deadline #'org-deadline@org-deadline-update-created)
(remove-hook 'org-insert-heading-hook 'org-expiry-insert-created)
(remove-hook 'org-after-todo-state-change-hook 'org-expiry-insert-created)
(remove-hook 'org-after-tags-change-hook 'org-expiry-insert-created)