Add org-reschedule-past-to-today as exposed function

- Rename imalison:reschedule-past-to-today to org-reschedule-past-to-today
- Keep old name as alias for backwards compatibility
- Register function in org-agenda-api-exposed-functions for API access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-31 13:59:28 -08:00
parent c4867e7845
commit f28a78b053
3 changed files with 60 additions and 1 deletions

View File

@@ -210,7 +210,7 @@ This function finds all incomplete items in the agenda files that are scheduled
in the past and reschedules them to today. Useful for catching up on tasks that
have slipped past their original scheduled date.
#+begin_src emacs-lisp :tangle org-config-config.el
(defun imalison:reschedule-past-to-today ()
(defun org-reschedule-past-to-today ()
"Reschedule all incomplete items scheduled in the past to today.
Iterates through all org-agenda files and reschedules any TODO items
that have a SCHEDULED date before today to the current date."
@@ -229,6 +229,9 @@ that have a SCHEDULED date before today to the current date."
nil
'agenda)
(message "Rescheduled %d items to today" rescheduled-count)))
;; Keep old name as alias for backwards compatibility
(defalias 'imalison:reschedule-past-to-today 'org-reschedule-past-to-today)
#+end_src
#+RESULTS: