Function: hs-indicator-mouse-toggle-hiding
hs-indicator-mouse-toggle-hiding is an interactive and byte-compiled
function defined in hideshow.el.gz.
Signature
(hs-indicator-mouse-toggle-hiding EVENT)
Documentation
Toggle block hiding with indicators.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/hideshow.el.gz
(defun hs-indicator-mouse-toggle-hiding (event)
"Toggle block hiding with indicators."
(interactive "e")
(hs-life-goes-on
(when hs-show-indicators
(when (mouse-event-p event)
(mouse-set-point event))
(let* ((overlays (save-excursion
(goto-char (posn-point (event-end event)))
(overlays-in (pos-bol) (pos-eol))))
(pos (catch 'hs--indicator-ov
(dolist (ov overlays)
(when-let* ((ov (overlay-get ov 'hs-indicator-block-start)))
(throw 'hs--indicator-ov ov))))))
(when pos
(goto-char pos)
(hs-toggle-hiding))))))