Function: org-fold-hide-drawer-toggle
org-fold-hide-drawer-toggle is an interactive and byte-compiled
function defined in org-fold.el.gz.
Signature
(org-fold-hide-drawer-toggle &optional FORCE NO-ERROR ELEMENT)
Documentation
Toggle the visibility of the current drawer.
When optional argument FORCE is off, make drawer visible. If
it is non-nil, hide it unconditionally. Throw an error when not
at a drawer, unless NO-ERROR is non-nil. When optional argument
ELEMENT is provided, consider it instead of the current drawer.
Return a non-nil value when toggling is successful.
Key Bindings
Aliases
org-hide-drawer-toggle (obsolete since 9.6)
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-fold.el.gz
(defun org-fold-hide-drawer-toggle (&optional force no-error element)
"Toggle the visibility of the current drawer.
When optional argument FORCE is `off', make drawer visible. If
it is non-nil, hide it unconditionally. Throw an error when not
at a drawer, unless NO-ERROR is non-nil. When optional argument
ELEMENT is provided, consider it instead of the current drawer.
Return a non-nil value when toggling is successful."
(interactive)
(org-fold--hide-wrapper-toggle
(or element (org-element-at-point)) 'drawer force no-error))