Function: propertized-buffer-identification

propertized-buffer-identification is a byte-compiled function defined in bindings.el.gz.

Signature

(propertized-buffer-identification FMT)

Documentation

Return a list suitable for mode-line-buffer-identification.

FMT is a format specifier such as "%12b". This function adds text properties for face, help-echo, and local-map to it.

Source Code

;; Defined in /usr/src/emacs/lisp/bindings.el.gz
(defun propertized-buffer-identification (fmt)
  "Return a list suitable for `mode-line-buffer-identification'.
FMT is a format specifier such as \"%12b\".  This function adds
text properties for face, help-echo, and local-map to it."
  (list (propertize fmt
		    'face 'mode-line-buffer-id
		    'help-echo
                    "Buffer name
mouse-1: Previous buffer\nmouse-3: Next buffer"
		    'mouse-face 'mode-line-highlight
		    'local-map mode-line-buffer-identification-keymap)))