Function: cider-history-elide

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

Signature

(cider-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-20260822.1520/cider-history.el
(defun cider-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-history-maximum-display-length
           (> (length str)
              cider-history-maximum-display-length))
      (concat (substring str 0 (- cider-history-maximum-display-length 3))
              (propertize "..." 'cider-history-extra t))
    str))