Function: org-agenda-schedule

org-agenda-schedule is an interactive and byte-compiled function defined in org-agenda.el.gz.

Signature

(org-agenda-schedule ARG &optional TIME)

Documentation

Schedule the item at point.

ARG is passed through to org-schedule.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defun org-agenda-schedule (arg &optional time)
  "Schedule the item at point.
ARG is passed through to `org-schedule'."
  (interactive "P")
  (org-agenda-check-type t 'agenda 'todo 'tags 'search)
  (org-agenda-check-no-diary)
  (org-agenda-maybe-loop
   #'org-agenda-schedule arg t nil
   (let* ((marker (or (org-get-at-bol 'org-marker)
		      (org-agenda-error)))
	  ;; (type (marker-insertion-type marker))
	  (buffer (marker-buffer marker))
	  (pos (marker-position marker))
	  ts)
     (set-marker-insertion-type marker t)
     (org-with-remote-undo buffer
       (with-current-buffer buffer
	 (widen)
	 (goto-char pos)
	 (setq ts (org-schedule arg time)))
       (org-agenda-show-new-time marker ts " S"))
     (message "%s" ts))))