Function: cider-sync-request:inspect-expr

cider-sync-request:inspect-expr is a byte-compiled function defined in cider-inspector.el.

Signature

(cider-sync-request:inspect-expr EXPR NS)

Documentation

Evaluate EXPR in context of NS and inspect its result.

Set the page size in paginated view to PAGE-SIZE, maximum length of atomic collection members to MAX-ATOM-LENGTH, and maximum size of nested collections to MAX-COLL-SIZE if non nil.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-inspector.el
;; nREPL interactions

(defun cider-sync-request:inspect-expr (expr ns)
  "Evaluate EXPR in context of NS and inspect its result.
Set the page size in paginated view to PAGE-SIZE, maximum length of atomic
collection members to MAX-ATOM-LENGTH, and maximum size of nested collections to
MAX-COLL-SIZE if non nil."
  (thread-first
    (append (nrepl--eval-request expr ns)
            `("inspect" "true"
              ,@(when cider-inspector-page-size
                  `("page-size" ,cider-inspector-page-size))
              ,@(when cider-inspector-max-atom-length
                  `("max-atom-length" ,cider-inspector-max-atom-length))
              ,@(when cider-inspector-max-coll-size
                  `("max-coll-size" ,cider-inspector-max-coll-size))
              ,@(when cider-inspector-max-nested-depth
                  `("max-nested-depth" ,cider-inspector-max-nested-depth))
              ,@(when cider-inspector-display-analytics-hint
                  `("display-analytics-hint" "true"))
              "tidy-qualified-keywords" ,(if cider-inspector-tidy-qualified-keywords
                                             "true" "false")
              "pretty-print" ,(if cider-inspector-pretty-print "true" "false")
              "sort-maps" ,(if cider-inspector-sort-maps "true" "false")
              "only-diff" ,(if cider-inspector-only-diff "true" "false")))
    (cider-nrepl-send-sync-request)))