From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.bugs Subject: bug#20855: Emacs wipes out custom-set-variables while setting package-selected-packages for the first time Date: Sat, 20 Jun 2015 01:11:22 +0000 (UTC) Message-ID: <138330248.2223618.1434762682098.JavaMail.yahoo@mail.yahoo.com> Reply-To: Barry OReilly NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2223617_19549991.1434762682089" X-Trace: ger.gmane.org 1434762926 11276 80.91.229.3 (20 Jun 2015 01:15:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2015 01:15:26 +0000 (UTC) To: 20855@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 20 03:15:13 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 1Z67NI-00049V-T5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jun 2015 03:15:13 +0200 Original-Received: from localhost ([::1]:60300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z67NI-0000cA-5h for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jun 2015 21:15:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z67ND-0000Za-Qy for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 21:15:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z67NA-0006ju-IJ for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 21:15:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z67NA-0006jT-F8 for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 21:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z67N9-0007qe-SN for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 21:15:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Barry OReilly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jun 2015 01:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20855 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.143476286430106 (code B ref -1); Sat, 20 Jun 2015 01:15:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jun 2015 01:14:24 +0000 Original-Received: from localhost ([127.0.0.1]:52352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z67MU-0007pT-Qp for submit@debbugs.gnu.org; Fri, 19 Jun 2015 21:14:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35679) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z67MT-0007pH-25 for submit@debbugs.gnu.org; Fri, 19 Jun 2015 21:14:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z67MM-0005s6-G2 for submit@debbugs.gnu.org; Fri, 19 Jun 2015 21:14:15 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z67MM-0005rv-D6 for submit@debbugs.gnu.org; Fri, 19 Jun 2015 21:14:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z67MK-0008SB-W5 for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 21:14:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z67MH-0005nD-Nw for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 21:14:12 -0400 Original-Received: from nm49-vm9.bullet.mail.ne1.yahoo.com ([98.138.121.137]:37821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z67MH-0005mz-Dt for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2015 21:14:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1434762848; bh=yWoCIgeiI0nKHqGm3iVyBYYtVbS7sXEh2iv3SDuhCFM=; h=Date:From:Reply-To:To:Subject:From:Subject; b=h4F/OLz6vY1V65SHUSEa7PLIXroaPQIk8OqDIwWgD4Qy9C0Ve7215gQvqtWImQwS+nS6L3MJNnPUbx+B5hgbwAnCL1JwqiFNjD2opRraQHB3ZAYnhnoBdLOnCrs61V+C9ABJaDzqIt1yBR5Eyj5wsTStNWCbrLYt9J+AulelaZ7AQd6W9ogijbdhNE0rAF34OVWXZtgDFUnDrTa0nyP2I1elkqX5lyjTljX2vJEubPeOlytTsJvN38BGyIO2ZWYAgFQ3HGV8htia9xY4C3VSAIE4WpwvUk2vBhxNLoOyXNF+B8cZfpBtfjq5DAf9ug1kZtEupZyTaETKzKF22mMlEg== Original-Received: from [127.0.0.1] by nm49.bullet.mail.ne1.yahoo.com with NNFMP; 20 Jun 2015 01:14:08 -0000 Original-Received: from [98.138.100.117] by nm49.bullet.mail.ne1.yahoo.com with NNFMP; 20 Jun 2015 01:11:22 -0000 Original-Received: from [98.138.226.160] by tm108.bullet.mail.ne1.yahoo.com with NNFMP; 20 Jun 2015 01:11:22 -0000 Original-Received: from [127.0.0.1] by omp1061.mail.ne1.yahoo.com with NNFMP; 20 Jun 2015 01:11:22 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 919924.34870.bm@omp1061.mail.ne1.yahoo.com X-YMail-OSG: LTW.KGUVM1nf2WaKniRrHKCUgGkjrlKDKOETTJVxoeu9.WrURvsGrLLXL.hCNp1 Hk94rzO8A0xbh6_P88tGYKTiaWciCenDdgE2qxyBrwFZdG8XSCc_qRSQPThabg7jeCARQhtj7WCb HKH1hZGYfAAc3AkyoiFtocTnzkdKYsSINmqTcrbW9o4WJYo0ishQ8TBChqwVRnZwro_MdRVDkF8k X9gDDlXbfLxonxP5JEoOfjE21SormMvJVR8Od1623fGOuCsPCE8Eje.JGbLfS4WGBRo_fccbLuod Y1k40m6T0thLe1.LmXoToeI.yQpQyS34Bef7j3DVIpq580W7ZsBYLXWaqKuUVawB7kVC5vvnRUSp D8JFKyeBQ6cWwdrFlRAwFRu_cp0qp9iu7h5ytv1R4X9Gp1joXjoImpjHUvUuNVdZ1GmpBt5VYNjh Dxja58__jz5PXb0GE3WwR0LDz4NevSwCoH90MP3Tw0diBzQ3hgfuHwwZfexpCLWW.yKNa.M.Xi5l Dbw8IdQdSd6nmBtoKFCDT Original-Received: by 98.138.105.252; Sat, 20 Jun 2015 01:11:22 +0000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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: 140.186.70.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:104142 Archived-At: ------=_Part_2223617_19549991.1434762682089 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable With Emacs master: =C2=A0 =C2=A0commit d213cf0400ee5cad2e7f4626745fd97b942ff5e9=C2=A0 =C2=A0Da= te: =C2=A0 Thu Jun 18 19:15:05 2015 -0400 but not Emacs 24.5, I see Emacs wipe out my custom-set-variables when I sta= rt Emacs, as it sets package-selected-packages for the first time: diff --git a/emacs/init.el b/emacs/init.elindex 480d711..278cb80 100644--- = a/emacs/init.el+++ b/emacs/init.el@@ -245,63 +245,15 @@=C2=A0 ;; If you edi= t it by hand, you could mess it up, so be careful.=C2=A0 ;; Your init file = should contain only one such instance.=C2=A0 ;; If there is more than one, = they won't work right.- '(Buffer-menu-name-width 64)- '(ac-delay 1.0)- '(cc= -search-directories+ '(package-selected-packages=C2=A0 =C2=A0 (quote- =C2= =A0 =C2=A0("." "/usr/include" "/usr/local/include/*" "./src" "../src" "./in= clude" "../include" "./inc" "../inc" "./public" "../public" "./internal" ".= ./internal")))- '(column-number-mode t)- '(delete-by-moving-to-trash t)- '(= dired-auto-revert-buffer t)- '(ediff-merge-split-window-function (quote spl= it-window-vertically))- '(evil-ex-hl-update-delay 0.01)- '(evil-ex-visual-c= har-range t)- '(evil-highlight-closing-paren-at-point-states nil)- '(evil-i= ntercept-maps nil)- '(evil-kbd-macro-suppress-motion-error t)- '(evil-mouse= -word (quote evil-move-WORD))- '(evil-move-cursor-back nil)- '(evil-overrid= ing-maps nil)- '(evil-search-module (quote evil-search))- '(evil-shift-widt= h my-offset)- '(ff-always-try-to-create nil)- '(ff-special-constructs nil)-= '(font-lock-maximum-decoration (quote ((c++-mode . 2))))- '(frame-backgrou= nd-mode 'dark)- '(global-whitespace-mode t)- '(inhibit-startup-screen t)- '= (inverse-video t)- '(jde-global-classpath my-java-classpath)- '(jde-jdk-reg= istry- =C2=A0 (quote- =C2=A0 =C2=A0(("1.6.0" . "/usr/lib/jvm/java-1.6.0-ope= njdk.x86_64"))))- '(jde-sourcepath my-java-sourcepath)- '(large-file-warnin= g-threshold 1000000000.0)- '(message-log-max 100000)- '(nxml-child-indent m= y-offset)- '(nxml-sexp-element-flag t)- '(python-indent my-offset)- '(pytho= n-indent-offset my-offset)- '(scroll-conservatively 101)- '(scroll-margin 4= )- '(sentence-end-double-space nil)- '(show-paren-mode t)- '(tags-case-fold= -search nil)- '(tool-bar-mode nil)- '(undo-tree-visualizer-diff nil)- '(und= o-tree-visualizer-timestamps t)- '(whitespace-style (quote (face tabs trail= ing)))- '(x-select-enable-clipboard t)- '(x-select-enable-primary t))+ =C2= =A0 =C2=A0(goto-chg haskell-mode flylisp evil-numbers diff-hl adjust-parens= ))))=C2=A0(custom-set-faces *Messages* buffer shows: Saving file /Users/boreilly/unihome/emacs/init.el...Wrote /Users/boreilly/u= nihome/emacs/init.el [2 times]Saving file /Users/boreilly/unihome/emacs/ini= t.el...Wrote /Users/boreilly/unihome/emacs/init.el [2 times] (NB: I symlink this init.el to .emacs) These messages don't appear when starting Emacs 24.5. Also note, my init.el calls package-initialize and package-install directly= . The writes to init.el occur during a call to (package-install 'goto-chg),= which is not installed. ------=_Part_2223617_19549991.1434762682089 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
With Emacs master:

   commit d213cf040= 0ee5cad2e7f4626745fd97b942ff5e9
   Date:   Thu Jun 18 19:15:05 = 2015 -0400

but not Emacs 24.5, I see Emacs wipe out my= custom-set-variables when I start Emacs, as it sets package-selected-packa= ges for the first time:

diff --git a/emacs/init.el b/e= macs/init.el
index 480d711..278cb80 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -= 245,63 +245,15 @@
  ;; If you edit it by hand, you could mess it up, so= be careful.
  ;; Your init file should contain only one such instance.
&nbs= p; ;; If there is more than one, they won't work right.
- '(Buffer-menu-name-w= idth 64)
- '(ac-delay 1.0)
- '(cc-search-directories
+ '(package-selected-packages
&nbs= p;   (quote
-    ("." "/usr/include" "/usr/local/include/*" "./= src" "../src" "./include" "../include" "./inc" "../inc" "./public" "../publ= ic" "./internal" "../internal")))
- '(column-number-mode t)
- '(delete-by-moving-= to-trash t)
- '(dired-auto-revert-buffer t)
- '(ediff-merge-split-window-function= (quote split-window-vertically))
- '(evil-ex-hl-update-delay 0.01)
- '(evil-ex-v= isual-char-range t)
- '(evil-highlight-closing-paren-at-point-states nil)
- '(evi= l-intercept-maps nil)
- '(evil-kbd-macro-suppress-motion-error t)
- '(evil-mouse-= word (quote evil-move-WORD))
- '(evil-move-cursor-back nil)
- '(evil-overriding-m= aps nil)
- '(evil-search-module (quote evil-search))
- '(evil-shift-width my-offs= et)
- '(ff-always-try-to-create nil)
- '(ff-special-constructs nil)
- '(font-lock-m= aximum-decoration (quote ((c++-mode . 2))))
- '(frame-background-mode 'dark)
- '(= global-whitespace-mode t)
- '(inhibit-startup-screen t)
- '(inverse-video t)
- '(jde= -global-classpath my-java-classpath)
- '(jde-jdk-registry
-   (quote
-   &= nbsp;(("1.6.0" . "/usr/lib/jvm/java-1.6.0-openjdk.x86_64"))))
- '(jde-sourcep= ath my-java-sourcepath)
- '(large-file-warning-threshold 1000000000.0)
- '(messag= e-log-max 100000)
- '(nxml-child-indent my-offset)
- '(nxml-sexp-element-flag t= )
-= '(python-indent my-offset)
- '(python-indent-offset my-offset)
- '(scroll-cons= ervatively 101)
- '(scroll-margin 4)
- '(sentence-end-double-space nil)
- '(show-par= en-mode t)
- '(tags-case-fold-search nil)
- '(tool-bar-mode nil)
- '(undo-tree-visua= lizer-diff nil)
- '(undo-tree-visualizer-timestamps t)
- '(whitespace-style (quot= e (face tabs trailing)))
- '(x-select-enable-clipboard t)
- '(x-select-enable-pri= mary t))
+    (goto-chg haskell-mode flylisp evil-numbers diff-hl ad= just-parens))))
 (custom-set-faces

*Messages* buff= er shows:

Saving file /Users/boreilly/unihome/emacs/in= it.el...
Wrote /Users/boreilly/unihome/emacs/init.el [2 times]
Saving file /Users= /boreilly/unihome/emacs/init.el...
Wrote /Users/boreilly/unihome/emacs/init.el= [2 times]

(NB: I symlink this init.el to .emacs)

These messages don't appear when starting Emacs 24.5.

Also note, my init.el calls package-initialize and package= -install directly. The writes to init.el occur during a call to (package-in= stall 'goto-chg), which is not installed.

=
------=_Part_2223617_19549991.1434762682089--