Function: erc-format-message

erc-format-message is a byte-compiled function defined in erc.el.gz.

Signature

(erc-format-message MSG &rest ARGS)

Documentation

Format MSG according to ARGS.

See also format-spec.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-format-message (msg &rest args)
  "Format MSG according to ARGS.

See also `format-spec'."
  (when (eq (logand (length args) 1) 1) ; oddp
    (error "Obscure usage of this function appeared"))
  (let ((entry (erc-retrieve-catalog-entry msg)))
    (when (not entry)
      (error "No format spec for message %s" msg))
    (when (functionp entry)
      (setq entry (apply entry args)))
    (format-spec entry (apply #'format-spec-make args))))