Function: org-fold-hide-block-toggle

org-fold-hide-block-toggle is an interactive and byte-compiled function defined in org-fold.el.gz.

Signature

(org-fold-hide-block-toggle &optional FORCE NO-ERROR ELEMENT)

Documentation

Toggle the visibility of the current block.

When optional argument FORCE is off, make block visible. If it is non-nil, hide it unconditionally. Throw an error when not at a block, unless NO-ERROR is non-nil. When optional argument ELEMENT is provided, consider it instead of the current block.

Return a non-nil value when toggling is successful.

Key Bindings

Aliases

org-hide-block-toggle (obsolete since 9.6)

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-fold.el.gz
(defun org-fold-hide-block-toggle (&optional force no-error element)
  "Toggle the visibility of the current block.

When optional argument FORCE is `off', make block visible.  If it
is non-nil, hide it unconditionally.  Throw an error when not at
a block, unless NO-ERROR is non-nil.  When optional argument
ELEMENT is provided, consider it instead of the current block.

Return a non-nil value when toggling is successful."
  (interactive)
  (org-fold--hide-wrapper-toggle
   (or element (org-element-at-point)) 'block force no-error))