Function: hs--filter-function

hs--filter-function is a byte-compiled function defined in hideshow.el.gz.

Signature

(hs--filter-function CMD)

Documentation

Function used for hs-cycle-filter and hs-add-cycle-binding.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/hideshow.el.gz
;;;; Internal functions

(defun hs--filter-function (cmd)
  "Function used for `hs-cycle-filter' and `hs-add-cycle-binding'."
  (when (and hs-cycle-filter
             ;; On the headline with hideable blocks
             (save-excursion
               (forward-line 0)
               (hs-get-first-block-on-line))
             (or (not (functionp hs-cycle-filter))
                 (funcall hs-cycle-filter)))
    cmd))