From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Calling (package-initialize) sooner during initialization Date: Mon, 27 Apr 2015 13:32:47 +0100 Message-ID: References: <87383xk4ia.fsf@taylan.uni.cx> <87d22zi69k.fsf@taylan.uni.cx> <87a8xtoq3a.fsf@gmail.com> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1430137979 2543 80.91.229.3 (27 Apr 2015 12:32:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2015 12:32:59 +0000 (UTC) Cc: emacs-devel To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 27 14:32:58 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YmiDX-0003N9-Qt for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2015 14:32:55 +0200 Original-Received: from localhost ([::1]:54748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmiDW-00057C-Ox for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2015 08:32:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmiDS-000550-Vx for emacs-devel@gnu.org; Mon, 27 Apr 2015 08:32:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmiDR-000808-KO for emacs-devel@gnu.org; Mon, 27 Apr 2015 08:32:50 -0400 Original-Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:35834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmiDR-0007zN-3v for emacs-devel@gnu.org; Mon, 27 Apr 2015 08:32:49 -0400 Original-Received: by lbbuc2 with SMTP id uc2so80733161lbb.2 for ; Mon, 27 Apr 2015 05:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=5OXnmEYx6ytrPGbcJZW9omqqD72y+C33VUm0GmY97j8=; b=PZVOvPYjoLRfuLXCkjX/6l6uU3AGK6n7Wlbo3JLYT2sQpu+7mSMr1WeLnlx4eIhJf8 BQhbNuXDGO/mE/m+0ZBKS5D9R6zcNCVNFEN8BpDSgTYxZvWpaFJSSxg1nuKcmbXbbStv m7mIPD6uueUXO6/nWvhIYfbJEY/DTXHBF/DK7xnGKO0UWfdkiv4ptCVAgTNUZyqP/hdd mIovFOQ+RH4g4Imz4QtT/8ktLlAyzUT+6bEJiJI5iPYjzugKjBGIGBvy6BxmpHrUVpQj Ip9S8Hq9Ps79qFrqmehkeIB1Wx6c2ncdjzCIgWGNiOLunCjW1CzKc+oyl+9qauVanNhU Ipjg== X-Received: by 10.152.2.227 with SMTP id 3mr3660913lax.73.1430137967296; Mon, 27 Apr 2015 05:32:47 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Mon, 27 Apr 2015 05:32:47 -0700 (PDT) In-Reply-To: <87a8xtoq3a.fsf@gmail.com> X-Google-Sender-Auth: MGqCbmTEqqrDrzGS4przlFVFgYM X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185928 Archived-At: 2015-04-27 10:52 GMT+01:00 Thierry Volpiatto : > Stefan Monnier writes: > >> But the current code in Emacs's "master" solves this problem by adding >> "(package-initialize)" in the user's ~/.emacs. > > This is a very bad idea, I don't want my init file modified. > Only the user should modify this file. It's not a great idea, but the previous situation was unnacceptable, so something was done about it. We can certainly improve on it. > Why don't you write to the custom-file (and make the use of custom-file > the default instead of writing custom settings in .emacs by default) ? Because the custom-file might not be loaded at the top of the init file. And package-initialize needs to be placed at the very top (otherwise it's not solving anything). Of course the user can then go ahead and move package-initialize anywhere else that he wants (or even comment it out). But the first time it is inserted needs to be at the very top, so that we solve the problem for those users who don't know any better.