Function: erc-define-message-format-catalog

erc-define-message-format-catalog is a macro defined in erc-common.el.gz.

Signature

(erc-define-message-format-catalog LANGUAGE &rest ENTRIES)

Documentation

Define message-formatting templates for LANGUAGE, a symbol.

Expect ENTRIES to be pairs of (KEY . FORMAT), where KEY is a symbol, and FORMAT evaluates to a format string compatible with format-spec. Expect modules that only define a handful of entries to do so manually, instead of using this macro, so that the resulting variables will end up with more useful doc strings.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-common.el.gz
(defmacro erc-define-message-format-catalog (language &rest entries)
  "Define message-formatting templates for LANGUAGE, a symbol.
Expect ENTRIES to be pairs of (KEY . FORMAT), where KEY is a
symbol, and FORMAT evaluates to a format string compatible with
`format-spec'.  Expect modules that only define a handful of
entries to do so manually, instead of using this macro, so that
the resulting variables will end up with more useful doc strings."
  (declare (indent 1)
           (debug (symbolp [&rest [keywordp form]] &rest (symbolp . form))))
  `(erc--define-catalog ,language ,entries))