Function: org-shiftleft
org-shiftleft is an interactive and byte-compiled function defined in
org.el.gz.
Signature
(org-shiftleft &optional ARG)
Documentation
Act on current element according to context.
This does one of the following:
- switch a timestamp at point one day into the past
- on a headline, switch to the previous TODO keyword.
- on an item, switch entire list to the previous bullet type
- on a property line, switch to the previous allowed value
- on a clocktable definition line, move time block into the past
- in a table, move a single cell left
This function runs the functions in org-shiftleft-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 runs org-shiftleft-final-hook using the same logic.
If none of the above succeeds and org-support-shift-select is
non-nil, runs shift-select-mode specific command. See that
variable for more information.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-shiftleft (&optional arg)
"Act on current element according to context.
This does one of the following:
- switch a timestamp at point one day into the past
- on a headline, switch to the previous TODO keyword.
- on an item, switch entire list to the previous bullet type
- on a property line, switch to the previous allowed value
- on a clocktable definition line, move time block into the past
- in a table, move a single cell left
This function runs the functions in `org-shiftleft-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 runs `org-shiftleft-final-hook' using the same logic.
If none of the above succeeds and `org-support-shift-select' is
non-nil, runs `shift-select-mode' specific command. See that
variable for more information."
(interactive "P")
(cond
((run-hook-with-args-until-success 'org-shiftleft-hook))
((and org-support-shift-select (org-region-active-p))
(org-call-for-shift-select 'backward-char))
((org-at-timestamp-p 'lax) (call-interactively 'org-timestamp-down-day))
((and (not (eq org-support-shift-select 'always))
(org-at-heading-p))
(let ((org-inhibit-logging
(not org-treat-S-cursor-todo-selection-as-state-change))
(org-inhibit-blocking
(not org-treat-S-cursor-todo-selection-as-state-change)))
(org-call-with-arg 'org-todo 'left)))
((or (and org-support-shift-select
(not (eq org-support-shift-select 'always))
(org-at-item-bullet-p))
(and (not org-support-shift-select) (org-at-item-p)))
(org-call-with-arg 'org-cycle-list-bullet 'previous))
((and (not (eq org-support-shift-select 'always))
(org-at-property-p))
(call-interactively 'org-property-previous-allowed-value))
((org-clocktable-try-shift 'left arg))
((and (not (eq org-support-shift-select 'always))
(org-at-table-p))
(org-table-move-cell-left))
((run-hook-with-args-until-success 'org-shiftleft-final-hook))
(org-support-shift-select
(org-call-for-shift-select 'backward-char))
(t (org-shiftselect-error))))