Function: erc-status-sidebar-default-chan-format

erc-status-sidebar-default-chan-format is a byte-compiled function defined in erc-status-sidebar.el.gz.

Signature

(erc-status-sidebar-default-chan-format CHANNAME &optional NUM-MESSAGES ERC-FACE)

Documentation

Format CHANNAME for display in the sidebar.

If NUM-MESSAGES is non-nil, append it to the channel name. If ERC-FACE is non-nil, apply it to channel name. If it is equal to erc-default-face, also apply bold property to make the channel name stand out.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-status-sidebar.el.gz
(defun erc-status-sidebar-default-chan-format (channame
                                               &optional num-messages erc-face)
  "Format CHANNAME for display in the sidebar.

If NUM-MESSAGES is non-nil, append it to the channel name.  If
ERC-FACE is non-nil, apply it to channel name.  If it is equal to
`erc-default-face', also apply bold property to make the channel
name stand out."
  (when num-messages
    (setq channame (format "%s [%d]" channame num-messages)))
  (when erc-face
    (put-text-property 0 (length channame) 'face erc-face channame)
    (when (eq erc-face 'erc-default-face)
      (add-face-text-property 0 (length channame) 'bold t channame)))
  channame)