Function: cider-repl-history-elide

cider-repl-history-elide is a byte-compiled function defined in cider-repl-history.el.

Signature

(cider-repl-history-elide STR)

Documentation

If STR is too long, abbreviate it with an ellipsis.

Otherwise, return it unchanged.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl-history.el
(defun cider-repl-history-elide (str)
  ;; FIXME: Use `truncate-string-to-width'?
  "If STR is too long, abbreviate it with an ellipsis.
Otherwise, return it unchanged."
  (if (and cider-repl-history-maximum-display-length
           (> (length str)
              cider-repl-history-maximum-display-length))
      (concat (substring str 0 (- cider-repl-history-maximum-display-length 3))
              (propertize "..." 'cider-repl-history-extra t))
    str))