Subject: bug#12740: 24.2.50; ERC fix broke modules after require

From: Antoine Levitt <[email-masked]>
Date: Fri, 26 Oct 2012 16:58:07 +0200

Hi,

The following code stopped working (ie truncate stopped being activated)
after a series of commits by Stefan Monnier

emacs -Q

(require 'erc)
(setq erc-modules '(truncate))
(erc-update-modules)
(erc :server "irc.freenode.net")

This worked fine before

Author: Stefan Monnier <[email-masked]>
Date:   Mon Oct 15 12:49:57 2012 -0400

    * lisp/erc/erc.el (erc-log): Make it into a defsubst.
    (erc-with-server-buffer, define-erc-module, erc-with-buffer)
    (erc-with-all-buffers-of-server): Use `declare'.
    * lisp/erc/erc-backend.el (erc-log): Adjust autoload accordingly.

After this, erc was broken until

Author: Stefan Monnier <[email-masked]>
Date:   Thu Oct 18 11:51:28 2012 -0400

    * lisp/erc/erc-backend.el: Require `erc' instead of autoloading its macros.

And after this commit, the sample code above stopped working.

Antoine