GNU bug report logs - #21355
24.4; Loading a theme causes session customizations to be saved

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: Greg Lucas <greg@HIDDEN>; dated Wed, 26 Aug 2015 21:05:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 26 Aug 2015 21:04:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 26 17:04:34 2015
Received: from localhost ([127.0.0.1]:39244 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZUhs2-0002Qo-6K
	for submit <at> debbugs.gnu.org; Wed, 26 Aug 2015 17:04:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36829)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <greg@HIDDEN>) id 1ZUhrz-0002Qd-Ja
 for submit <at> debbugs.gnu.org; Wed, 26 Aug 2015 17:04:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <greg@HIDDEN>) id 1ZUhry-0000yG-6Q
 for submit <at> debbugs.gnu.org; Wed, 26 Aug 2015 17:04:31 -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,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44629)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <greg@HIDDEN>) id 1ZUhry-0000xy-30
 for submit <at> debbugs.gnu.org; Wed, 26 Aug 2015 17:04:30 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46825)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <greg@HIDDEN>) id 1ZUhrw-0005eo-Md
 for bug-gnu-emacs@HIDDEN; Wed, 26 Aug 2015 17:04:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <greg@HIDDEN>) id 1ZUhrr-0000tU-VX
 for bug-gnu-emacs@HIDDEN; Wed, 26 Aug 2015 17:04:28 -0400
Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47320)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <greg@HIDDEN>) id 1ZUhrr-0000qr-Ol
 for bug-gnu-emacs@HIDDEN; Wed, 26 Aug 2015 17:04:23 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.nyi.internal (Postfix) with ESMTP id D2A2F2251D
 for <bug-gnu-emacs@HIDDEN>; Wed, 26 Aug 2015 17:04:17 -0400 (EDT)
Received: from web4 ([10.202.2.214])
 by compute4.internal (MEProxy); Wed, 26 Aug 2015 17:04:17 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=glucas.net; h=
 content-transfer-encoding:content-type:date:from:message-id
 :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=MN7
 a+EkENNRGbyQxfCNE4AXZjS0=; b=12fgWTGri/Odx5y7fwwOdYUqTo0BBxxhXfF
 gShUEcfiYhINlQMAhCD/l+6Mvzi92sP/837UuyiXlQ8qZf641ZCmXcO8emFDxvky
 FnzxWmb/d7HAx0gBFp5aAZ6q8EIfjUgrfAB9HSRItOZFI3CotTkKcHPu/yywzi5j
 cBZMDMGA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:content-type
 :date:from:message-id:mime-version:subject:to:x-sasl-enc
 :x-sasl-enc; s=smtpout; bh=MN7a+EkENNRGbyQxfCNE4AXZjS0=; b=kIH2t
 qeMqXVVghQ5TF2VVKtHQ5nrcZy6g7goj0VbBz6dZTP/KSfJE0vSJ+7aiuhtpCnUx
 f3BNiyUWw4/kUlwpIWFOu5r0fMIuwrMPfM8JIpPsuQIi0uy6mnT5vVM/hUfjGTHO
 kgJ8Z/QOMnmxO0QUsYqz3Kja5U6pcIMB8mJdrQ=
Received: by web4.nyi.internal (Postfix, from userid 99)
 id 9403010B01B; Wed, 26 Aug 2015 17:04:17 -0400 (EDT)
Message-Id: <1440623057.3987499.366976033.36C3C135@HIDDEN>
X-Sasl-Enc: gfQzGLihB7qiSfycv9V88S4AMM1P2EF8RpPmtPXIE1Aq 1440623057
From: Greg Lucas <greg@HIDDEN>
To: bug-gnu-emacs@HIDDEN
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
X-Mailer: MessagingEngine.com Webmail Interface - ajax-4500bf93
Subject: 24.4; Loading a theme causes session customizations to be saved
Date: Wed, 26 Aug 2015 17:04:17 -0400
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.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: -5.0 (-----)
X-Debbugs-Envelope-To: submit
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: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -5.0 (-----)


Loading a theme has the unexpected side of effect of making
customizations in the current session saved to the custom-file the next
time it is updated. 

I reproduced this problem by starting Emacs with an new empty user home
directory (since using -q would prevent saving customizations at all).

Then:

M-x customize-variable sentence-end-double-space -- toggle the value,
and Set for Current Session.
M-x load-theme deeper-blue
M-x customize-variable user-full-name -- set a value and Save for Future
Sessions. 

I would expect only the user-full-name to be saved, but the resulting
.emacs file contains:

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(sentence-end-double-space nil)
 '(user-full-name "Greg Lucas"))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )



From testing this I've found that at the time I call `load-theme` all
customizations made for the current session will get marked to be saved.
Changes made after load-theme behave as expected and do not get saved
unless I explicitly choose to save them.



In GNU Emacs 24.4.1 (i686-pc-mingw32)
 of 2014-10-20 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.3.9600
Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: Emacs-Lisp

Minor modes in effect:
  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:
<lwindow> M-x c u s t o m i z e - v a r <tab> <return> 
s h o w - p a <tab> <tab> <tab> <C-backspace> - <backspace> 
<tab> <tab> <C-backspace> <C-backspace> <C-backspace> 
<tab> C-g C-g M-x c u s t - v <tab> a r <tab> <return> 
s e n t e n <tab> <tab> - d <tab> <return> <help-echo> 
<down-mouse-1> <mouse-1> <help-echo> <down-mouse-1> 
<help-echo> <help-echo> M-x l o a d - t h e m e <return> 
d e e <tab> <return> M-x c u s t o m i z e - v <tab> 
<return> s h o w - p a <tab> <C-backspace> <C-backspace> 
<C-backspace> u s e r <tab> f <tab> <return> <down-mouse-1> 
<mouse-1> G r e g SPC L u c a s <help-echo> <help-echo> 
<down-mouse-1> C-x C-f ~ / . e m <tab> <return> M-x 
e m a c s - r e <tab> <C-backspace> <C-backspace> r 
e p o <tab> r <tab> <return>

Recent messages:
Creating customization setup...done
To install your edits, invoke [State] and choose the Set operation
Creating customization items...
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
(New file)
Saving file c:/temp/emacs-home/.emacs...
Wrote c:/temp/emacs-home/.emacs [2 times]
Making completion list...

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils deeper-blue-theme help-mode help-fns cus-edit
easymenu cus-start cus-load wid-edit cl-loaddefs cl-lib time-date
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars 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
w32notify w32 multi-tty emacs)

Memory information:
((conses 8 99251 6599)
 (symbols 32 19304 0)
 (miscs 32 270 184)
 (strings 16 15490 4166)
 (string-bytes 1 403422)
 (vectors 8 10810)
 (vector-slots 4 394593 5356)
 (floats 8 68 253)
 (intervals 28 353 19)
 (buffers 508 17))




Acknowledgement sent to Greg Lucas <greg@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#21355; 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: Mon, 25 Nov 2019 12:00:02 UTC

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