From 7ebf7f2f28e96341f4a6830e70863334497a3617 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Thu, 8 Feb 2024 12:54:21 +0100 Subject: lisp/org-expiry.el (org-expiry-deinsinuate): Fix obsolete `ad-deactivate' --- lisp/org-expiry.el | 6 +++--- 1 file 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) -- cgit v1.2.3-70-g09d2