Function: msb-alon-item-handler
msb-alon-item-handler is a byte-compiled function defined in
msb.el.gz.
Signature
(msb-alon-item-handler BUFFER MAXBUF)
Documentation
Create one string item for the buffer menu.
The item looks like:
<buffer-name> *%# <file-name>
The * appears only if the buffer is marked as modified.
The % appears only if the buffer is read-only.
The # appears only version control file (SCCS/RCS).
Source Code
;; Defined in /usr/src/emacs/lisp/msb.el.gz
(defun msb-alon-item-handler (buffer maxbuf)
"Create one string item for the buffer menu.
The item looks like:
<buffer-name> *%# <file-name>
The `*' appears only if the buffer is marked as modified.
The `%' appears only if the buffer is read-only.
The `#' appears only version control file (SCCS/RCS)."
(format (format "%%%ds %%s%%s%%s %%s" maxbuf)
(buffer-name buffer)
(if (buffer-modified-p) "*" " ")
(if buffer-read-only "%" " ")
(if (and (boundp 'vc-mode) vc-mode) "#" " ")
(or buffer-file-name "")))