summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Radchenko <yantar92@posteo.net>2024-02-08 12:54:21 +0100
committerIhor Radchenko <yantar92@posteo.net>2024-02-08 12:54:21 +0100
commit7ebf7f2f28e96341f4a6830e70863334497a3617 (patch)
treea1a8cdb6ae1efc471a6a590da77e98503425ccf2
parent4f767bb0aea18ae0bf8c03fa3b019b775b4fe63f (diff)
lisp/org-expiry.el (org-expiry-deinsinuate): Fix obsolete `ad-deactivate'
-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)