Function: combobulate-string-truncate

combobulate-string-truncate is a natively compiled function defined in combobulate-misc.el.

Signature

(combobulate-string-truncate S MAX-LENGTH)

Documentation

Truncate S to MAX-LENGTH and append ellipses.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-misc.el
(defun combobulate-string-truncate (s max-length)
  "Truncate S to MAX-LENGTH and append ellipses."
  (let* ((len (length s)))
    (if (> len max-length)
        (concat (string-limit s max-length) " … ")
      s)))