Function: org-shiftmetadown

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

Signature

(org-shiftmetadown &optional ARG)

Documentation

Drag the line at point down.

In a table, insert an empty row at the current line. On a clock timestamp, update the value of the timestamp like S-<down> but also adjust the previous clocked item in the clock history. Everywhere else, drag the line at point down.

This function runs the functions in org-shiftmetadown-hook one by one as a first step, and exits immediately if a function from the hook returns non-nil. In the absence of a specific context, the function also runs org-shiftmetadown-final-hook using the same logic.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-shiftmetadown (&optional _arg)
  "Drag the line at point down.
In a table, insert an empty row at the current line.
On a clock timestamp, update the value of the timestamp like `S-<down>'
but also adjust the previous clocked item in the clock history.
Everywhere else, drag the line at point down.

This function runs the functions in `org-shiftmetadown-hook' one
by one as a first step, and exits immediately if a function from
the hook returns non-nil.  In the absence of a specific context,
the function also runs `org-shiftmetadown-final-hook' using the
same logic."
  (interactive "P")
  (cond
   ((run-hook-with-args-until-success 'org-shiftmetadown-hook))
   ((org-at-table-p) (call-interactively 'org-table-insert-row))
   ((org-at-clock-log-p) (let ((org-clock-adjust-closest t))
			   (call-interactively 'org-timestamp-down)))
   ((run-hook-with-args-until-success 'org-shiftmetadown-final-hook))
   (t (call-interactively 'org-drag-line-forward))))