From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Lucas Newsgroups: gmane.emacs.bugs Subject: bug#21355: 24.4; Loading a theme causes session customizations to be saved Date: Wed, 26 Aug 2015 17:04:17 -0400 Message-ID: <1440623057.3987499.366976033.36C3C135@webmail.messagingengine.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1440623126 3229 80.91.229.3 (26 Aug 2015 21:05:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2015 21:05:26 +0000 (UTC) To: 21355@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 26 23:05:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZUhsf-0004Xc-0R for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 23:05:13 +0200 Original-Received: from localhost ([::1]:41691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUhse-0005up-K9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 17:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUhsb-0005sd-AF for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 17:05:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUhsW-0001dy-7b for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 17:05:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUhsW-0001dN-1C for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 17:05:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZUhsV-0002Rc-Hr for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 17:05:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Greg Lucas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2015 21:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21355 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14406230749354 (code B ref -1); Wed, 26 Aug 2015 21:05:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Aug 2015 21:04:34 +0000 Original-Received: from localhost ([127.0.0.1]:39244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUhs2-0002Qo-6K for submit@debbugs.gnu.org; Wed, 26 Aug 2015 17:04:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36829) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUhrz-0002Qd-Ja for submit@debbugs.gnu.org; Wed, 26 Aug 2015 17:04:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUhry-0000yG-6Q for submit@debbugs.gnu.org; Wed, 26 Aug 2015 17:04:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUhry-0000xy-30 for submit@debbugs.gnu.org; Wed, 26 Aug 2015 17:04:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUhrw-0005eo-Md for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 17:04:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUhrr-0000tU-VX for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 17:04:28 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUhrr-0000qr-Ol for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 17:04:23 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D2A2F2251D for ; Wed, 26 Aug 2015 17:04:17 -0400 (EDT) Original-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= Original-Received: by web4.nyi.internal (Postfix, from userid 99) id 9403010B01B; Wed, 26 Aug 2015 17:04:17 -0400 (EDT) X-Sasl-Enc: gfQzGLihB7qiSfycv9V88S4AMM1P2EF8RpPmtPXIE1Aq 1440623057 X-Mailer: MessagingEngine.com Webmail Interface - ajax-4500bf93 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105856 Archived-At: 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: M-x c u s t o m i z e - v a r s h o w - p a - C-g C-g M-x c u s t - v a r s e n t e n - d M-x l o a d - t h e m e d e e M-x c u s t o m i z e - v s h o w - p a u s e r f G r e g SPC L u c a s C-x C-f ~ / . e m M-x e m a c s - r e r e p o r 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))