GNU bug report logs - #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

Previous Next

Package: emacs;

Reported by: "Bradley M. Kuhn" <bkuhn <at> ebb.org>

Date: Sat, 14 Jun 2014 21:39:01 UTC

Severity: minor

Found in version 24.4.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17783 in the body.
You can then email your comments to 17783 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17783; Package emacs. (Sat, 14 Jun 2014 21:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Bradley M. Kuhn" <bkuhn <at> ebb.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 14 Jun 2014 21:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Bradley M. Kuhn" <bkuhn <at> ebb.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 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: Sat, 14 Jun 2014 17:23:37 -0400
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 <at> 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.


In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
 of 2014-06-14 on birch
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description:	Debian GNU/Linux 7.5 (wheezy)

Configured using:
 `configure --prefix=/home/bkuhn/hacks/Installs/Emacs-from-git'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GSETTINGS NOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: ERC

Minor modes in effect:
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-pcomplete-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o r t - e m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Connecting to irc.gnome.org:6667... ...done
Logging in as 'testignoreme1857'...
Logging in without password
Logging in as 'testignoreme1857'... done

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils network-stream
starttls tls erc-list erc-menu easymenu erc-join erc-ring erc-networks
erc-track erc-match erc-button wid-edit cl-loaddefs cl-lib erc-fill
erc-stamp erc-netsplit erc-pcomplete pcomplete comint ansi-color ring
erc-goodies erc erc-backend erc-compat format-spec auth-source eieio
byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util
help-fns mail-prsvr password-cache thingatpt pp time-date tooltip
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 112482 13831)
 (symbols 48 22374 0)
 (miscs 40 43 166)
 (strings 32 23564 5390)
 (string-bytes 1 670223)
 (vectors 16 14036)
 (vector-slots 8 418903 7659)
 (floats 8 88 194)
 (intervals 56 317 432)
 (buffers 960 13)
 (heap 1024 24074 639))

-- 
   -- bkuhn




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17783; Package emacs. (Sun, 27 Dec 2015 20:59:01 GMT) Full text and rfc822 format available.

Message #8 received at 17783 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Bradley M. Kuhn" <bkuhn <at> ebb.org>
Cc: 17783 <at> debbugs.gnu.org
Subject: Re: 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
"Bradley M. Kuhn" <bkuhn <at> 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 <at> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17783; Package emacs. (Wed, 23 Oct 2019 11:36:01 GMT) Full text and rfc822 format available.

Message #11 received at 17783 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Bradley M. Kuhn" <bkuhn <at> ebb.org>
Cc: 17783 <at> debbugs.gnu.org
Subject: Re: 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: Wed, 23 Oct 2019 13:35:19 +0200
"Bradley M. Kuhn" <bkuhn <at> 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 <at> nil, etc.

I've tried this in Emacs 27, and I was unable to reproduce is, so I'm
going to go ahead and guess that this has been fixed in the five years
since it was reported, and I'm closing this bug report.

If you're still seeing this, please reopen.

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




bug closed, send any further explanations to 17783 <at> debbugs.gnu.org and "Bradley M. Kuhn" <bkuhn <at> ebb.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 23 Oct 2019 11:36:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 20 Nov 2019 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 157 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.