From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22727: Managing packages writes the user init file Date: Fri, 19 Feb 2016 11:40:28 +0200 Message-ID: <83k2m1rqb7.fsf@gnu.org> References: <56C51520.6020205@alice.it> <8337squfpy.fsf@gnu.org> <56C6122B.4050903@alice.it> <8360xlu5i0.fsf@gnu.org> <56C63FD9.4050102@alice.it> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1455874881 15229 80.91.229.3 (19 Feb 2016 09:41:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2016 09:41:21 +0000 (UTC) To: 22727@debbugs.gnu.org, johnw@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 19 10:41:11 2016 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 1aWhYl-00051e-Cm for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Feb 2016 10:41:11 +0100 Original-Received: from localhost ([::1]:50432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWhYk-00064T-KZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Feb 2016 04:41:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWhYf-00064G-Nt for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2016 04:41:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWhYc-0001lu-EC for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2016 04:41:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWhYc-0001lq-Ad for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2016 04:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aWhYc-0001OT-2w for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2016 04:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Feb 2016 09:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22727 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22727-submit@debbugs.gnu.org id=B22727.14558748465327 (code B ref 22727); Fri, 19 Feb 2016 09:41:02 +0000 Original-Received: (at 22727) by debbugs.gnu.org; 19 Feb 2016 09:40:46 +0000 Original-Received: from localhost ([127.0.0.1]:33504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWhYM-0001Nr-9c for submit@debbugs.gnu.org; Fri, 19 Feb 2016 04:40:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34330) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWhYK-0001Nf-4W for 22727@debbugs.gnu.org; Fri, 19 Feb 2016 04:40:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWhYD-0001iW-Id for 22727@debbugs.gnu.org; Fri, 19 Feb 2016 04:40:38 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWhY9-0001iE-Ga; Fri, 19 Feb 2016 04:40:33 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2875 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aWhY8-00018C-Vh; Fri, 19 Feb 2016 04:40:33 -0500 In-reply-to: <56C63FD9.4050102@alice.it> (message from Angelo Graziosi on Thu, 18 Feb 2016 23:04:09 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:113283 Archived-At: > Cc: 22727@debbugs.gnu.org, johnw@gnu.org > From: Angelo Graziosi > Date: Thu, 18 Feb 2016 23:04:09 +0100 > > > If we solve this part, i.e. avoid modifying .emacs until the user > > actually selects some packages to install, would that address your > > concerns that triggered this bug report? > > No. > > 1. > > As I tried to explain, I haven't opened this report to see fixed an > issue for me. Please read: > http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00989.html Thanks, I've read that thread before writing the above. > On emacs-devel there is a discussion in which others think Emacs should > not change the init file when one manages Emacs packages. I thought this bug report was supposed to be the place where the issue is discussed. It sounds strange to me to file a bug, and then discuss it elsewhere. > 2. > > Since I discovered this behavior, each time I need to manege packages (I > have some packages installed from MELPA), I save my init file and > restore it after the managing. So I never used those additions and Emacs > seems to work the same. If the stuff written by package.el is not needed, then it should not write it, I agree. > Indeed I don't understand why installing packages should change MY > init file.. Presumably because Emacs needs to know what is installed the next time you invoke package.el. > 3. > > Anyway, I am not an Emacs developer so it could be the case that for > some obscure (to me) reason, Emacs needs those additions/informations. > If this is true, why not use another packages configuration files? On > emacs-devel it seems that other users/developers would prefer that.. > Given the nature of the addictions, > > (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. > '(package-selected-packages (quote (bla bla bla)))) > (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. > ) > > why not to use a separate file also for Options - Customize Emacs? As mentioned elsewhere, you can customize the variable custom-file to have that.