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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Bradley M. Kuhn" <bkuhn@HIDDEN>; dated Sat, 14 Jun 2014 21:39:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Jun 2014 21:38:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 14 17:38:24 2014
Received: from localhost ([127.0.0.1]:47999 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WvveY-0006nW-D1
	for submit <at> debbugs.gnu.org; Sat, 14 Jun 2014 17:38:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60113)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bkuhn@HIDDEN>) id 1WvvWV-0005PK-57
 for submit <at> debbugs.gnu.org; Sat, 14 Jun 2014 17:30:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bkuhn@HIDDEN>) id 1WvvWK-00046P-4M
 for submit <at> debbugs.gnu.org; Sat, 14 Jun 2014 17:29:57 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59187)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bkuhn@HIDDEN>) id 1WvvWK-00046L-1r
 for submit <at> debbugs.gnu.org; Sat, 14 Jun 2014 17:29:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33574)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bkuhn@HIDDEN>) id 1WvvWE-0000Ne-G4
 for bug-gnu-emacs@HIDDEN; Sat, 14 Jun 2014 17:29:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bkuhn@HIDDEN>) id 1WvvW9-00044j-3z
 for bug-gnu-emacs@HIDDEN; Sat, 14 Jun 2014 17:29:46 -0400
Received: from catholic.ebb.org ([67.207.139.67]:58954)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bkuhn@HIDDEN>) id 1WvvW8-00044Z-Ua
 for bug-gnu-emacs@HIDDEN; Sat, 14 Jun 2014 17:29:41 -0400
Received: from localhost (birch.ebb.org [216.220.116.140])
 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
 (No client certificate requested)
 by catholic.ebb.org (Postfix) with ESMTPSA id A5E9FE00E2;
 Sat, 14 Jun 2014 17:29:39 -0400 (EDT)
From: "Bradley M. Kuhn" <bkuhn@HIDDEN>
To: bug-gnu-emacs@HIDDEN
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
Organization: Opinions expressed in this email are my own and are not
 necessarily those of any organization with which I have an affiliation.
X-Disclaimer: Opinions expressed in this email are my own and are not
 necessarily those of any organization with which I have an affiliation.
Date: Sat, 14 Jun 2014 17:23:37 -0400
Message-ID: <8738f7423q.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 14 Jun 2014 17:38:21 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

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.


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




Acknowledgement sent to "Bradley M. Kuhn" <bkuhn@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#17783; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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