bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17783: 24.4.50; ERC: custom-set-variables with erc-modules after a (


From: Lars Ingebrigtsen
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
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux)

"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 via email to

[Prev in Thread] Current Thread [Next in Thread]