Function: erc--make-message-variable-name

erc--make-message-variable-name is a byte-compiled function defined in erc.el.gz.

Signature

(erc--make-message-variable-name CATALOG KEY SOFTP)

Documentation

Return variable name conforming to ERC's message-catalog interface.

Given a CATALOG symbol mycat and format-string KEY mykey, also a symbol, return the symbol erc-message-mycat-mykey. With SOFTP, only do so when defined as a variable.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;;; Message catalog

(define-inline erc--make-message-variable-name (catalog key softp)
  "Return variable name conforming to ERC's message-catalog interface.
Given a CATALOG symbol `mycat' and format-string KEY `mykey',
also a symbol, return the symbol `erc-message-mycat-mykey'.  With
SOFTP, only do so when defined as a variable."
  (inline-quote
   (let* ((catname (symbol-name ,catalog))
          (prefix (if (eq ?- (aref catname 0)) "erc--message" "erc-message-"))
          (name (concat prefix catname "-" (symbol-name ,key))))
     (if ,softp
         (and-let* ((s (intern-soft name)) ((boundp s))) s)
       (intern name)))))