Function: dired--get-ellipsis-length

dired--get-ellipsis-length is a byte-compiled function defined in dired.el.gz.

Signature

(dired--get-ellipsis-length)

Documentation

Return length of ellipsis.

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired--get-ellipsis-length ()
  "Return length of ellipsis."
  (let* ((dt (or (window-display-table)
                 buffer-display-table
                 standard-display-table))
         (glyphs (and dt (display-table-slot dt 'selective-display)))
         (vlen (length glyphs))
         (char-glyphs (make-vector vlen nil)))
    (dotimes (i vlen)
      (aset char-glyphs i (glyph-char (aref glyphs i))))
    (string-width (if glyphs (concat char-glyphs) "..."))))