Function: dired--get-filename-display-length

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

Signature

(dired--get-filename-display-length)

Documentation

Return maximum display length of filename.

When dired-filename-display-length is not an integer, the function actually returns the number of columns available for displaying the file names, and should be called with point at the first character of the file name.

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired--get-filename-display-length ()
  "Return maximum display length of filename.
When `dired-filename-display-length' is not an integer, the
function actually returns the number of columns available for
displaying the file names, and should be called with point at the
first character of the file name."
  (if (integerp dired-filename-display-length)
      dired-filename-display-length
    (- (window-max-chars-per-line) 1 (current-column))))