From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.bugs Subject: bug#22727: Managing packages writes the user init file Date: Thu, 18 Feb 2016 01:49:36 +0100 Message-ID: <56C51520.6020205@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1455756694 29139 80.91.229.3 (18 Feb 2016 00:51:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2016 00:51:34 +0000 (UTC) To: 22727@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 18 01:51:19 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 1aWCoR-0001Ly-Cl for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2016 01:51:19 +0100 Original-Received: from localhost ([::1]:35008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWCoN-000278-PZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Feb 2016 19:51:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWCoF-00023r-QL for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 19:51:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWCoA-0001lE-6z for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 19:51:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWCoA-0001lA-3c for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 19:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aWCo9-0001Wp-V1 for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 19:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Angelo Graziosi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Feb 2016 00:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22727 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.14557566045798 (code B ref -1); Thu, 18 Feb 2016 00:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Feb 2016 00:50:04 +0000 Original-Received: from localhost ([127.0.0.1]:60072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWCnD-0001VR-QB for submit@debbugs.gnu.org; Wed, 17 Feb 2016 19:50:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53705) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWCnB-0001Un-OK for submit@debbugs.gnu.org; Wed, 17 Feb 2016 19:50:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWCn0-0001Ku-Vz for submit@debbugs.gnu.org; Wed, 17 Feb 2016 19:49:56 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWCn0-0001Kq-Sm for submit@debbugs.gnu.org; Wed, 17 Feb 2016 19:49:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWCmv-0001jB-2O for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 19:49:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWCmp-0001JQ-Dw for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 19:49:45 -0500 Original-Received: from smtp204.alice.it ([82.57.200.100]:8400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWCmp-0001JI-43 for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2016 19:49:39 -0500 Original-Received: from [192.168.1.101] (79.19.230.242) by smtp204.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 5697BA0B0700F1DD for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2016 01:49:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:113216 Archived-At: I have noticed that just using Options - Manage Emacs Packages writes my init file. For example I find these additions in my case: (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 (tabbar-ruler sr-speedbar)))) (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. ) I discovered this only casually.. I think this is not the right thing to do. Why an application should write a file which belongs to the user? Maybe there is a better way saving those additions in another file which the use could customize, more or less as we do with the desktop file or lock file. For example in my init.el file I have ;; Instead to save in ~/.projects.ede (setq ede-project-placeholder-cache-file "~/.emacs.d/projects.ede") ;; Instead to save in ~/.emacs.desktop (setq desktop-base-file-name "~/.emacs.d/desktop") ;; Instead to save in ~/.emacs.desktop.lock (setq desktop-base-lock-name "~/.emacs.d/desktop.lock") We could have something like this ;; Instead to save in ~/.emacs.packages_installed (setq desktop-base-lock-name "~/.emacs.d/packages_installed") This would be very useful.. :) TIA, Angelo.