Subject: Re: bug#29417: 26.0.90: minor modes enabled after C-h f

From: Glenn Morris <[email-masked]>
Date: Tue, 28 Nov 2017 13:58:32 -0500

Since erc-open runs erc-update-modules, I think this might work.
It fixes the issue, but I'm not an ERC user.

--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -1845,6 +1845,7 @@ erc-modules
   :get (lambda (sym)
          ;; replace outdated names with their newer equivalents
          (erc-migrate-modules (symbol-value sym)))
+  :initialize 'custom-initialize-default
   :set (lambda (sym val)
          ;; disable modules which have just been removed
          (when (and (boundp 'erc-modules) erc-modules val)