Function: cider-stacktrace--should-hide-p

cider-stacktrace--should-hide-p is a byte-compiled function defined in cider-stacktrace.el.

Signature

(cider-stacktrace--should-hide-p NEG-FILTERS POS-FILTERS FLAGS)

Documentation

Decide whether a stackframe should be hidden or not.

NEG-FILTERS dictate which frames should be hidden while POS-FILTERS can override this and ensure that those frames are shown. Argument FLAGS are the flags set on the stackframe, ie: clj dup, etc.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-stacktrace.el
(defun cider-stacktrace--should-hide-p (neg-filters pos-filters flags)
  "Decide whether a stackframe should be hidden or not.
NEG-FILTERS dictate which frames should be hidden while POS-FILTERS can
override this and ensure that those frames are shown.
Argument FLAGS are the flags set on the stackframe, ie: clj dup, etc."
  (let ((neg (seq-intersection neg-filters flags))
        (pos (seq-intersection pos-filters flags))
        (all (memq 'all pos-filters)))
    (cond (all nil) ;; if all filter is on then we should not hide
          ((and pos neg) nil) ;; if hidden and "resurrected" we should not hide
          (pos nil)
          (neg t)
          (t nil))))