Function: msb-dired-item-handler
msb-dired-item-handler is a byte-compiled function defined in
msb.el.gz.
Signature
(msb-dired-item-handler BUFFER &optional MAXBUF)
Documentation
Create one string item, concerning a Dired BUFFER, for the buffer menu.
The item looks like:
*% <buffer-name>
The * appears only if the buffer is marked as modified.
The % appears only if the buffer is read-only.
Optional second argument MAXBUF is completely ignored.
Source Code
;; Defined in /usr/src/emacs/lisp/msb.el.gz
(defun msb-dired-item-handler (_buffer &optional _maxbuf)
"Create one string item, concerning a Dired BUFFER, for the buffer menu.
The item looks like:
*% <buffer-name>
The `*' appears only if the buffer is marked as modified.
The `%' appears only if the buffer is read-only.
Optional second argument MAXBUF is completely ignored."
(let ((name (msb--dired-directory))
(modified (if (buffer-modified-p) "*" " "))
(read-only (if buffer-read-only "%" " ")))
(format "%s%s %s" modified read-only name)))