Function: Buffer-menu--dynamic-name-width
Buffer-menu--dynamic-name-width is a byte-compiled function defined in
buff-menu.el.gz.
Signature
(Buffer-menu--dynamic-name-width BUFFERS)
Documentation
Return a name column width based on the current window width.
The width will never exceed the actual width of the buffer names, but will never be narrower than 19 characters.
Source Code
;; Defined in /usr/src/emacs/lisp/buff-menu.el.gz
(defun Buffer-menu--dynamic-name-width (buffers)
"Return a name column width based on the current window width.
The width will never exceed the actual width of the buffer names,
but will never be narrower than 19 characters."
(max 19
;; This gives 19 on an 80 column window, and take up
;; proportionally more space as the window widens.
(min (truncate (/ (window-width) 4.2))
(apply #'max 0 (mapcar (lambda (b)
(length (buffer-name b)))
buffers)))))