Function: erc-update-modules
erc-update-modules is a byte-compiled function defined in erc.el.gz.
Signature
(erc-update-modules)
Documentation
Run this to enable erc-foo-mode for all modules in erc-modules.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-update-modules ()
"Run this to enable erc-foo-mode for all modules in `erc-modules'."
(let (req)
(dolist (mod erc-modules)
(setq req (concat "erc-" (symbol-name mod)))
(cond
;; yuck. perhaps we should bring the filenames into sync?
((string= req "erc-capab-identify")
(setq req "erc-capab"))
((string= req "erc-completion")
(setq req "erc-pcomplete"))
((string= req "erc-pcomplete")
(setq mod 'completion))
((string= req "erc-autojoin")
(setq req "erc-join")))
(condition-case nil
(require (intern req))
(error nil))
(let ((sym (intern-soft (concat "erc-" (symbol-name mod) "-mode"))))
(if (fboundp sym)
(funcall sym 1)
(error "`%s' is not a known ERC module" mod))))))