Function: hs-toggle-hiding

hs-toggle-hiding is an interactive and byte-compiled function defined in hideshow.el.gz.

Signature

(hs-toggle-hiding &optional E)

Documentation

Toggle hiding/showing of a block.

See hs-hide-block and hs-show-block. Argument E should be the event that triggered this action.

View in manual

Probably introduced at or before Emacs version 31.1.

Key Bindings

Aliases

hs-mouse-toggle-hiding (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/hideshow.el.gz
(defun hs-toggle-hiding (&optional e)
  "Toggle hiding/showing of a block.
See `hs-hide-block' and `hs-show-block'.
Argument E should be the event that triggered this action."
  (interactive (list last-nonmenu-event))
  (hs-life-goes-on
   (when e (posn-set-point (event-end e)))
   (if (hs-already-hidden-p)
       (hs-show-block)
     (hs-hide-block))))