Function: ibuffer-compile-make-eliding-form
ibuffer-compile-make-eliding-form is a byte-compiled function defined
in ibuffer.el.gz.
Signature
(ibuffer-compile-make-eliding-form STRVAR ELIDE FROM-END-P)
Source Code
;; Defined in /usr/src/emacs/lisp/ibuffer.el.gz
(defun ibuffer-compile-make-eliding-form (strvar elide from-end-p)
(let ((ellipsis (propertize ibuffer-eliding-string 'font-lock-face 'bold)))
(if elide
`(if (> strlen 5)
,(if from-end-p
;; FIXME: this should probably also be using
;; `truncate-string-to-width' (Bug#24972)
`(concat ,ellipsis
(substring ,strvar
(string-width ibuffer-eliding-string)))
`(concat
(truncate-string-to-width
,strvar (- strlen (string-width ,ellipsis)) nil ?.)
,ellipsis))
,strvar)
strvar)))