unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Bradley M. Kuhn" <bkuhn@ebb.org>
Cc: 17783@debbugs.gnu.org
Subject: bug#17783: 24.4.50; ERC: custom-set-variables with erc-modules after a (require 'erc) causes network names to be nil unless 'networks' modules is used
Date: Sun, 27 Dec 2015 21:57:58 +0100	[thread overview]
Message-ID: <87ziwva9t5.fsf@gnus.org> (raw)
In-Reply-To: <8738f7423q.fsf@ebb.org> (Bradley M. Kuhn's message of "Sat, 14 Jun 2014 17:23:37 -0400")

"Bradley M. Kuhn" <bkuhn@ebb.org> writes:

> Put the following in FILE:
>
> (require 'erc)
> (custom-set-variables
>  '(erc-modules (quote (button))))
>
> (erc-select :server "irc.gnome.org" :port "6667" :nick "testignoreme1857" :full-name "Tester")
>
> and call with emacs -Q -l FILE
>
> As you connect to the IRC server, you'll see that the modeline -- initally
> correct -- change the IRC network name "nil" after connecting.  If you
> join a channel, that will be named #channel@nil, etc.
>
> This problem does not occur if you switch the order of "(require 'erc)"
> and the "(custom-set-variables)"
>
> This problem also does not occur if you have "networks" in the
> erc-modules list (since it changes the network name after connecting).
>
> I discovered this problem because I still had a "(require 'erc)"
> floating around in my .emacs, appearing before my "custom-set-variables" (from
> years before when ERC wasn't part of Emacs).  This "(require 'erc)" isn't
> actually needed, but it took a long time to determine what part of my
> .emacs was causing the problem.

Do you know what it is that erc does when loading that makes this work
normally?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2015-12-27 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-14 21:23 bug#17783: 24.4.50; ERC: custom-set-variables with erc-modules after a (require 'erc) causes network names to be nil unless 'networks' modules is used Bradley M. Kuhn
2015-12-27 20:57 ` Lars Ingebrigtsen [this message]
2019-10-23 11:35 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ziwva9t5.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=17783@debbugs.gnu.org \
    --cc=bkuhn@ebb.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).