Function: hs-show-block

hs-show-block is an interactive and byte-compiled function defined in hideshow.el.gz.

Signature

(hs-show-block)

Documentation

Select a block and show it.

This command runs hs-show-hook. See documentation for functions hs-hide-block and run-hooks.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/hideshow.el.gz
(defun hs-show-block ()
  "Select a block and show it.
This command runs `hs-show-hook'.  See documentation for functions
`hs-hide-block' and `run-hooks'."
  (interactive)
  (hs-life-goes-on
   (if-let* ((ov (hs-overlay-at (pos-eol)))
             (ov-start (overlay-start ov))
             (ov-end (overlay-end ov)))
       (progn
         (hs-discard-overlays (1- ov-start) ov-end)
         (hs--refresh-indicators ov-start ov-end))
     (when-let* ((block
                  (or (funcall hs-inside-comment-predicate)
                      (and (funcall hs-find-block-beginning-function)
                           (hs-block-positions)))))
       (hs-discard-overlays (car block) (cadr block))))
   (run-hooks 'hs-show-hook)))